From 6e5db3d8b5c5ad4fba023bb97e8e31bcd72a07a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 8 Sep 2025 21:14:33 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../tryAGI.OpenAI..JsonSerializerContext.g.cs | 315 +- ...timeClient.CreateRealtimeClientSecret.g.cs | 13 +- ...IRealtimeClient.CreateRealtimeSession.g.cs | 75 +- ...nt.CreateRealtimeTranscriptionSession.g.cs | 17 +- ...sonConverters.AudioTranscriptionModel.g.cs | 53 + ...rters.AudioTranscriptionModelNullable.g.cs | 60 + ...nAI.JsonConverters.NoiseReductionType.g.cs | 53 + ...Converters.NoiseReductionTypeNullable.g.cs | 60 + ...ClientEventConversationItemCreateType.g.cs | 53 + ...entConversationItemCreateTypeNullable.g.cs | 60 + ...ClientEventConversationItemDeleteType.g.cs | 53 + ...entConversationItemDeleteTypeNullable.g.cs | 60 + ...ientEventConversationItemRetrieveType.g.cs | 53 + ...tConversationItemRetrieveTypeNullable.g.cs | 60 + ...ientEventConversationItemTruncateType.g.cs | 53 + ...tConversationItemTruncateTypeNullable.g.cs | 60 + ...ClientEventInputAudioBufferAppendType.g.cs | 53 + ...entInputAudioBufferAppendTypeNullable.g.cs | 60 + ...aClientEventInputAudioBufferClearType.g.cs | 53 + ...ventInputAudioBufferClearTypeNullable.g.cs | 60 + ...ClientEventInputAudioBufferCommitType.g.cs | 53 + ...entInputAudioBufferCommitTypeNullable.g.cs | 60 + ...ClientEventOutputAudioBufferClearType.g.cs | 53 + ...entOutputAudioBufferClearTypeNullable.g.cs | 60 + ...timeBetaClientEventResponseCancelType.g.cs | 53 + ...ClientEventResponseCancelTypeNullable.g.cs | 60 + ...timeBetaClientEventResponseCreateType.g.cs | 53 + ...ClientEventResponseCreateTypeNullable.g.cs | 60 + ...ltimeBetaClientEventSessionUpdateType.g.cs | 53 + ...aClientEventSessionUpdateTypeNullable.g.cs | 60 + ...ntEventTranscriptionSessionUpdateType.g.cs | 53 + ...ranscriptionSessionUpdateTypeNullable.g.cs | 60 + ...eBetaResponseCreateParamsConversation.g.cs | 53 + ...ponseCreateParamsConversationNullable.g.cs | 60 + ...taResponseCreateParamsMaxOutputTokens.g.cs | 53 + ...seCreateParamsMaxOutputTokensNullable.g.cs | 60 + ...timeBetaResponseCreateParamsModalitie.g.cs | 53 + ...ResponseCreateParamsModalitieNullable.g.cs | 60 + ...ResponseCreateParamsOutputAudioFormat.g.cs | 53 + ...CreateParamsOutputAudioFormatNullable.g.cs | 60 + ...ltimeBetaResponseCreateParamsToolType.g.cs | 53 + ...aResponseCreateParamsToolTypeNullable.g.cs | 60 + ....RealtimeBetaResponseMaxOutputTokens.g.cs} | 14 +- ...eBetaResponseMaxOutputTokensNullable.g.cs} | 14 +- ...verters.RealtimeBetaResponseModalitie.g.cs | 53 + ...RealtimeBetaResponseModalitieNullable.g.cs | 60 + ...Converters.RealtimeBetaResponseObject.g.cs | 53 + ...rs.RealtimeBetaResponseObjectNullable.g.cs | 60 + ...ealtimeBetaResponseOutputAudioFormat.g.cs} | 14 +- ...etaResponseOutputAudioFormatNullable.g.cs} | 14 +- ...Converters.RealtimeBetaResponseStatus.g.cs | 53 + ...altimeBetaResponseStatusDetailsReason.g.cs | 53 + ...taResponseStatusDetailsReasonNullable.g.cs | 60 + ...RealtimeBetaResponseStatusDetailsType.g.cs | 53 + ...BetaResponseStatusDetailsTypeNullable.g.cs | 60 + ...rs.RealtimeBetaResponseStatusNullable.g.cs | 60 + ...erverEventConversationItemCreatedType.g.cs | 53 + ...ntConversationItemCreatedTypeNullable.g.cs | 60 + ...erverEventConversationItemDeletedType.g.cs | 53 + ...ntConversationItemDeletedTypeNullable.g.cs | 60 + ...mInputAudioTranscriptionCompletedType.g.cs | 53 + ...dioTranscriptionCompletedTypeNullable.g.cs | 60 + ...nItemInputAudioTranscriptionDeltaType.g.cs | 53 + ...utAudioTranscriptionDeltaTypeNullable.g.cs | 60 + ...ItemInputAudioTranscriptionFailedType.g.cs | 53 + ...tAudioTranscriptionFailedTypeNullable.g.cs | 60 + ...temInputAudioTranscriptionSegmentType.g.cs | 53 + ...AudioTranscriptionSegmentTypeNullable.g.cs | 60 + ...verEventConversationItemRetrievedType.g.cs | 53 + ...ConversationItemRetrievedTypeNullable.g.cs | 60 + ...verEventConversationItemTruncatedType.g.cs | 53 + ...ConversationItemTruncatedTypeNullable.g.cs | 60 + ...ters.RealtimeBetaServerEventErrorType.g.cs | 53 + ...ltimeBetaServerEventErrorTypeNullable.g.cs | 60 + ...erverEventInputAudioBufferClearedType.g.cs | 53 + ...ntInputAudioBufferClearedTypeNullable.g.cs | 60 + ...verEventInputAudioBufferCommittedType.g.cs | 53 + ...InputAudioBufferCommittedTypeNullable.g.cs | 60 + ...ventInputAudioBufferSpeechStartedType.g.cs | 53 + ...tAudioBufferSpeechStartedTypeNullable.g.cs | 60 + ...ventInputAudioBufferSpeechStoppedType.g.cs | 53 + ...tAudioBufferSpeechStoppedTypeNullable.g.cs | 60 + ...tInputAudioBufferTimeoutTriggeredType.g.cs | 53 + ...dioBufferTimeoutTriggeredTypeNullable.g.cs | 60 + ...aServerEventMCPListToolsCompletedType.g.cs | 53 + ...ventMCPListToolsCompletedTypeNullable.g.cs | 60 + ...BetaServerEventMCPListToolsFailedType.g.cs | 53 + ...erEventMCPListToolsFailedTypeNullable.g.cs | 60 + ...ServerEventMCPListToolsInProgressType.g.cs | 53 + ...entMCPListToolsInProgressTypeNullable.g.cs | 60 + ...erEventRateLimitsUpdatedRateLimitName.g.cs | 53 + ...ateLimitsUpdatedRateLimitNameNullable.g.cs | 60 + ...eBetaServerEventRateLimitsUpdatedType.g.cs | 53 + ...verEventRateLimitsUpdatedTypeNullable.g.cs | 60 + ...BetaServerEventResponseAudioDeltaType.g.cs | 53 + ...erEventResponseAudioDeltaTypeNullable.g.cs | 60 + ...eBetaServerEventResponseAudioDoneType.g.cs | 53 + ...verEventResponseAudioDoneTypeNullable.g.cs | 60 + ...ventResponseAudioTranscriptDeltaType.g.cs} | 14 +- ...onseAudioTranscriptDeltaTypeNullable.g.cs} | 14 +- ...rEventResponseAudioTranscriptDoneType.g.cs | 53 + ...sponseAudioTranscriptDoneTypeNullable.g.cs | 60 + ...EventResponseContentPartAddedPartType.g.cs | 53 + ...ponseContentPartAddedPartTypeNullable.g.cs | 60 + ...rverEventResponseContentPartAddedType.g.cs | 53 + ...tResponseContentPartAddedTypeNullable.g.cs | 60 + ...rEventResponseContentPartDonePartType.g.cs | 53 + ...sponseContentPartDonePartTypeNullable.g.cs | 60 + ...erverEventResponseContentPartDoneType.g.cs | 53 + ...ntResponseContentPartDoneTypeNullable.g.cs | 60 + ...imeBetaServerEventResponseCreatedType.g.cs | 53 + ...erverEventResponseCreatedTypeNullable.g.cs | 60 + ...altimeBetaServerEventResponseDoneType.g.cs | 53 + ...taServerEventResponseDoneTypeNullable.g.cs | 60 + ...esponseFunctionCallArgumentsDeltaType.g.cs | 53 + ...unctionCallArgumentsDeltaTypeNullable.g.cs | 60 + ...ResponseFunctionCallArgumentsDoneType.g.cs | 53 + ...FunctionCallArgumentsDoneTypeNullable.g.cs | 60 + ...ventResponseMCPCallArgumentsDeltaType.g.cs | 53 + ...onseMCPCallArgumentsDeltaTypeNullable.g.cs | 60 + ...EventResponseMCPCallArgumentsDoneType.g.cs | 53 + ...ponseMCPCallArgumentsDoneTypeNullable.g.cs | 60 + ...rverEventResponseMCPCallCompletedType.g.cs | 53 + ...tResponseMCPCallCompletedTypeNullable.g.cs | 60 + ...aServerEventResponseMCPCallFailedType.g.cs | 53 + ...ventResponseMCPCallFailedTypeNullable.g.cs | 60 + ...verEventResponseMCPCallInProgressType.g.cs | 53 + ...ResponseMCPCallInProgressTypeNullable.g.cs | 60 + ...erverEventResponseOutputItemAddedType.g.cs | 53 + ...ntResponseOutputItemAddedTypeNullable.g.cs | 60 + ...ServerEventResponseOutputItemDoneType.g.cs | 53 + ...entResponseOutputItemDoneTypeNullable.g.cs | 60 + ...eBetaServerEventResponseTextDeltaType.g.cs | 53 + ...verEventResponseTextDeltaTypeNullable.g.cs | 60 + ...eBetaServerEventResponseTextDoneType.g.cs} | 14 +- ...verEventResponseTextDoneTypeNullable.g.cs} | 14 +- ...timeBetaServerEventSessionCreatedType.g.cs | 53 + ...ServerEventSessionCreatedTypeNullable.g.cs | 60 + ...timeBetaServerEventSessionUpdatedType.g.cs | 53 + ...ServerEventSessionUpdatedTypeNullable.g.cs | 60 + ...rEventTranscriptionSessionCreatedType.g.cs | 53 + ...anscriptionSessionCreatedTypeNullable.g.cs | 60 + ...rEventTranscriptionSessionUpdatedType.g.cs | 53 + ...anscriptionSessionUpdatedTypeNullable.g.cs | 60 + ...ationItemMessageUserContentItemDetail.g.cs | 53 + ...mMessageUserContentItemDetailNullable.g.cs | 60 + ...onConverters.RealtimeFunctionToolType.g.cs | 53 + ...ters.RealtimeFunctionToolTypeNullable.g.cs | 60 + ...eResponseCreateParamsOutputModalitie.g.cs} | 14 +- ...eCreateParamsOutputModalitieNullable.g.cs} | 14 +- ...RequestClientSecretExpiresAfterAnchor.g.cs | 53 - ...lientSecretExpiresAfterAnchorNullable.g.cs | 60 - ...stGAAudioInputTurnDetectionEagerness.g.cs} | 14 +- ...oInputTurnDetectionEagernessNullable.g.cs} | 14 +- ...RequestGAAudioInputTurnDetectionType.g.cs} | 14 +- ...AAudioInputTurnDetectionTypeNullable.g.cs} | 14 +- ...timeSessionCreateRequestGAIncludeItem.g.cs | 53 + ...ionCreateRequestGAIncludeItemNullable.g.cs | 60 + ...essionCreateRequestGAMaxOutputTokens.g.cs} | 14 +- ...eateRequestGAMaxOutputTokensNullable.g.cs} | 14 +- ....RealtimeSessionCreateRequestGAModel.g.cs} | 14 +- ...eSessionCreateRequestGAModelNullable.g.cs} | 14 +- ...essionCreateRequestGAOutputModalitie.g.cs} | 14 +- ...eateRequestGAOutputModalitieNullable.g.cs} | 14 +- ...timeSessionCreateRequestGATracingEnum.g.cs | 53 + ...ionCreateRequestGATracingEnumNullable.g.cs | 60 + ...s.RealtimeSessionCreateRequestGAType.g.cs} | 14 +- ...meSessionCreateRequestGATypeNullable.g.cs} | 14 +- ...CreateRequestMaxResponseOutputTokens.g.cs} | 14 +- ...questMaxResponseOutputTokensNullable.g.cs} | 14 +- ...ealtimeSessionCreateRequestModalitie.g.cs} | 14 +- ...essionCreateRequestModalitieNullable.g.cs} | 14 +- ...RealtimeSessionCreateRequestToolType.g.cs} | 14 +- ...SessionCreateRequestToolTypeNullable.g.cs} | 14 +- ...onseAudioInputTurnDetectionEagerness.g.cs} | 14 +- ...oInputTurnDetectionEagernessNullable.g.cs} | 14 +- ...eResponseAudioInputTurnDetectionType.g.cs} | 14 +- ...eAudioInputTurnDetectionTypeNullable.g.cs} | 14 +- ...rs.RealtimeSessionCreateResponseModel.g.cs | 53 + ...imeSessionCreateResponseModelNullable.g.cs | 60 + ...rs.RealtimeSessionCreateResponseType.g.cs} | 14 +- ...imeSessionCreateResponseTypeNullable.g.cs} | 14 +- ...stGAAudioInputTurnDetectionEagerness.g.cs} | 14 +- ...oInputTurnDetectionEagernessNullable.g.cs} | 14 +- ...RequestGAAudioInputTurnDetectionType.g.cs} | 14 +- ...AAudioInputTurnDetectionTypeNullable.g.cs} | 14 +- ...ionSessionCreateRequestGAIncludeItem.g.cs} | 14 +- ...onCreateRequestGAIncludeItemNullable.g.cs} | 14 +- ...nscriptionSessionCreateRequestGAType.g.cs} | 14 +- ...onSessionCreateRequestGATypeNullable.g.cs} | 14 +- ...tInputAudioNoiseReductionTypeNullable.g.cs | 60 - ...teRequestInputAudioTranscriptionModel.g.cs | 53 - ...eResponseAudioInputTranscriptionModel.g.cs | 53 - ...eAudioInputTranscriptionModelNullable.g.cs | 60 - ...iptionSessionCreateResponseModalitie.g.cs} | 14 +- ...ssionCreateResponseModalitieNullable.g.cs} | 14 +- .../tryAGI.OpenAI.JsonConverters.Session.g.cs | 48 +- ...tryAGI.OpenAI.JsonConverters.Session2.g.cs | 87 + ...GI.OpenAI.JsonConverters.ToolChoice5.g.cs} | 8 +- ...AGI.OpenAI.JsonConverters.ToolsItem5.g.cs} | 44 +- ...AGI.OpenAI.JsonSerializerContextTypes.g.cs | 4596 ++++++++++------- ...OpenAI.Models.AudioTranscription.Json.g.cs | 92 + ...AGI.OpenAI.Models.AudioTranscription.g.cs} | 22 +- ...OpenAI.Models.AudioTranscriptionModel.g.cs | 63 + ...AGI.OpenAI.Models.NoiseReductionType.g.cs} | 16 +- ...lientEventConversationItemCreate.Json.g.cs | 92 + ...BetaClientEventConversationItemCreate.g.cs | 101 + ...ClientEventConversationItemCreateType.g.cs | 45 + ...lientEventConversationItemDelete.Json.g.cs | 92 + ...BetaClientEventConversationItemDelete.g.cs | 72 + ...ClientEventConversationItemDeleteType.g.cs | 45 + ...entEventConversationItemRetrieve.Json.g.cs | 92 + ...taClientEventConversationItemRetrieve.g.cs | 72 + ...ientEventConversationItemRetrieveType.g.cs | 45 + ...entEventConversationItemTruncate.Json.g.cs | 92 + ...taClientEventConversationItemTruncate.g.cs | 107 + ...ientEventConversationItemTruncateType.g.cs | 45 + ...lientEventInputAudioBufferAppend.Json.g.cs | 92 + ...BetaClientEventInputAudioBufferAppend.g.cs | 79 + ...ClientEventInputAudioBufferAppendType.g.cs | 45 + ...ClientEventInputAudioBufferClear.Json.g.cs | 92 + ...eBetaClientEventInputAudioBufferClear.g.cs | 58 + ...aClientEventInputAudioBufferClearType.g.cs | 45 + ...lientEventInputAudioBufferCommit.Json.g.cs | 92 + ...BetaClientEventInputAudioBufferCommit.g.cs | 65 + ...ClientEventInputAudioBufferCommitType.g.cs | 45 + ...lientEventOutputAudioBufferClear.Json.g.cs | 92 + ...BetaClientEventOutputAudioBufferClear.g.cs | 61 + ...ClientEventOutputAudioBufferClearType.g.cs | 45 + ...imeBetaClientEventResponseCancel.Json.g.cs | 92 + ...RealtimeBetaClientEventResponseCancel.g.cs | 72 + ...timeBetaClientEventResponseCancelType.g.cs | 45 + ...imeBetaClientEventResponseCreate.Json.g.cs | 92 + ...RealtimeBetaClientEventResponseCreate.g.cs | 86 + ...timeBetaClientEventResponseCreateType.g.cs | 45 + ...timeBetaClientEventSessionUpdate.Json.g.cs | 92 + ....RealtimeBetaClientEventSessionUpdate.g.cs | 79 + ...ltimeBetaClientEventSessionUpdateType.g.cs | 45 + ...tEventTranscriptionSessionUpdate.Json.g.cs | 92 + ...ClientEventTranscriptionSessionUpdate.g.cs | 69 + ...ntEventTranscriptionSessionUpdateType.g.cs | 45 + ...enAI.Models.RealtimeBetaResponse.Json.g.cs | 92 + ...GI.OpenAI.Models.RealtimeBetaResponse.g.cs | 219 + ...RealtimeBetaResponseCreateParams.Json.g.cs | 92 + ...dels.RealtimeBetaResponseCreateParams.g.cs | 230 + ...eBetaResponseCreateParamsConversation.g.cs | 51 + ...taResponseCreateParamsMaxOutputTokens.g.cs | 45 + ...timeBetaResponseCreateParamsModalitie.g.cs | 51 + ...esponseCreateParamsOutputAudioFormat.g.cs} | 24 +- ...timeBetaResponseCreateParamsTool.Json.g.cs | 92 + ...RealtimeBetaResponseCreateParamsTool.g.cs} | 16 +- ...sponseCreateParamsToolParameters.Json.g.cs | 92 + ...taResponseCreateParamsToolParameters.g.cs} | 2 +- ...timeBetaResponseCreateParamsToolType.g.cs} | 12 +- ...s.RealtimeBetaResponseMaxOutputTokens.g.cs | 45 + ....Models.RealtimeBetaResponseModalitie.g.cs | 51 + ...nAI.Models.RealtimeBetaResponseObject.g.cs | 45 + ...ealtimeBetaResponseOutputAudioFormat.g.cs} | 20 +- ...nAI.Models.RealtimeBetaResponseStatus.g.cs | 70 + ...ealtimeBetaResponseStatusDetails.Json.g.cs | 92 + ...els.RealtimeBetaResponseStatusDetails.g.cs | 83 + ...meBetaResponseStatusDetailsError.Json.g.cs | 92 + ...ealtimeBetaResponseStatusDetailsError.g.cs | 57 + ...altimeBetaResponseStatusDetailsReason.g.cs | 67 + ...RealtimeBetaResponseStatusDetailsType.g.cs | 65 + ...Models.RealtimeBetaResponseUsage.Json.g.cs | 92 + ...enAI.Models.RealtimeBetaResponseUsage.g.cs | 98 + ...taResponseUsageInputTokenDetails.Json.g.cs | 92 + ...imeBetaResponseUsageInputTokenDetails.g.cs | 89 + ...tTokenDetailsCachedTokensDetails.Json.g.cs | 92 + ...eInputTokenDetailsCachedTokensDetails.g.cs | 67 + ...ResponseUsageOutputTokenDetails.Json.g.cs} | 22 +- ...meBetaResponseUsageOutputTokenDetails.g.cs | 56 + ...rverEventConversationItemCreated.Json.g.cs | 92 + ...etaServerEventConversationItemCreated.g.cs | 101 + ...erverEventConversationItemCreatedType.g.cs | 45 + ...rverEventConversationItemDeleted.Json.g.cs | 92 + ...etaServerEventConversationItemDeleted.g.cs | 72 + ...erverEventConversationItemDeletedType.g.cs | 45 + ...InputAudioTranscriptionCompleted.Json.g.cs | 92 + ...nItemInputAudioTranscriptionCompleted.g.cs | 130 + ...mInputAudioTranscriptionCompletedType.g.cs | 46 + ...ItemInputAudioTranscriptionDelta.Json.g.cs | 92 + ...ationItemInputAudioTranscriptionDelta.g.cs | 103 + ...nItemInputAudioTranscriptionDeltaType.g.cs | 45 + ...temInputAudioTranscriptionFailed.Json.g.cs | 92 + ...tionItemInputAudioTranscriptionFailed.g.cs | 98 + ...putAudioTranscriptionFailedError.Json.g.cs | 92 + ...temInputAudioTranscriptionFailedError.g.cs | 78 + ...ItemInputAudioTranscriptionFailedType.g.cs | 46 + ...emInputAudioTranscriptionSegment.Json.g.cs | 92 + ...ionItemInputAudioTranscriptionSegment.g.cs | 142 + ...temInputAudioTranscriptionSegmentType.g.cs | 45 + ...erEventConversationItemRetrieved.Json.g.cs | 92 + ...aServerEventConversationItemRetrieved.g.cs | 78 + ...erEventConversationItemRetrievedType.g.cs} | 16 +- ...erEventConversationItemTruncated.Json.g.cs | 92 + ...aServerEventConversationItemTruncated.g.cs | 98 + ...verEventConversationItemTruncatedType.g.cs | 45 + ...els.RealtimeBetaServerEventError.Json.g.cs | 92 + ...I.Models.RealtimeBetaServerEventError.g.cs | 72 + ...ealtimeBetaServerEventErrorError.Json.g.cs | 92 + ...els.RealtimeBetaServerEventErrorError.g.cs | 91 + ...dels.RealtimeBetaServerEventErrorType.g.cs | 45 + ...rverEventInputAudioBufferCleared.Json.g.cs | 92 + ...etaServerEventInputAudioBufferCleared.g.cs | 59 + ...erverEventInputAudioBufferClearedType.g.cs | 45 + ...erEventInputAudioBufferCommitted.Json.g.cs | 92 + ...aServerEventInputAudioBufferCommitted.g.cs | 86 + ...verEventInputAudioBufferCommittedType.g.cs | 45 + ...entInputAudioBufferSpeechStarted.Json.g.cs | 92 + ...verEventInputAudioBufferSpeechStarted.g.cs | 96 + ...ventInputAudioBufferSpeechStartedType.g.cs | 45 + ...entInputAudioBufferSpeechStopped.Json.g.cs | 92 + ...verEventInputAudioBufferSpeechStopped.g.cs | 88 + ...ventInputAudioBufferSpeechStoppedType.g.cs | 45 + ...InputAudioBufferTimeoutTriggered.Json.g.cs | 92 + ...EventInputAudioBufferTimeoutTriggered.g.cs | 94 + ...tInputAudioBufferTimeoutTriggeredType.g.cs | 45 + ...ServerEventMCPListToolsCompleted.Json.g.cs | 92 + ...eBetaServerEventMCPListToolsCompleted.g.cs | 70 + ...aServerEventMCPListToolsCompletedType.g.cs | 45 + ...etaServerEventMCPListToolsFailed.Json.g.cs | 92 + ...timeBetaServerEventMCPListToolsFailed.g.cs | 70 + ...BetaServerEventMCPListToolsFailedType.g.cs | 45 + ...erverEventMCPListToolsInProgress.Json.g.cs | 92 + ...BetaServerEventMCPListToolsInProgress.g.cs | 70 + ...ServerEventMCPListToolsInProgressType.g.cs | 45 + ...BetaServerEventRateLimitsUpdated.Json.g.cs | 92 + ...ltimeBetaServerEventRateLimitsUpdated.g.cs | 73 + ...rEventRateLimitsUpdatedRateLimit.Json.g.cs | 92 + ...ServerEventRateLimitsUpdatedRateLimit.g.cs | 79 + ...erEventRateLimitsUpdatedRateLimitName.g.cs | 51 + ...eBetaServerEventRateLimitsUpdatedType.g.cs | 45 + ...etaServerEventResponseAudioDelta.Json.g.cs | 92 + ...timeBetaServerEventResponseAudioDelta.g.cs | 118 + ...BetaServerEventResponseAudioDeltaType.g.cs | 45 + ...BetaServerEventResponseAudioDone.Json.g.cs | 92 + ...ltimeBetaServerEventResponseAudioDone.g.cs | 107 + ...eBetaServerEventResponseAudioDoneType.g.cs | 45 + ...ventResponseAudioTranscriptDelta.Json.g.cs | 92 + ...rverEventResponseAudioTranscriptDelta.g.cs | 118 + ...EventResponseAudioTranscriptDeltaType.g.cs | 45 + ...ventResponseAudioTranscriptDone.Json.g.cs} | 22 +- ...erverEventResponseAudioTranscriptDone.g.cs | 120 + ...rEventResponseAudioTranscriptDoneType.g.cs | 45 + ...verEventResponseContentPartAdded.Json.g.cs | 92 + ...taServerEventResponseContentPartAdded.g.cs | 119 + ...entResponseContentPartAddedPart.Json.g.cs} | 22 +- ...rverEventResponseContentPartAddedPart.g.cs | 79 + ...EventResponseContentPartAddedPartType.g.cs | 51 + ...rverEventResponseContentPartAddedType.g.cs | 45 + ...rverEventResponseContentPartDone.Json.g.cs | 92 + ...etaServerEventResponseContentPartDone.g.cs | 119 + ...EventResponseContentPartDonePart.Json.g.cs | 92 + ...erverEventResponseContentPartDonePart.g.cs | 79 + ...rEventResponseContentPartDonePartType.g.cs | 51 + ...erverEventResponseContentPartDoneType.g.cs | 45 + ...meBetaServerEventResponseCreated.Json.g.cs | 92 + ...ealtimeBetaServerEventResponseCreated.g.cs | 71 + ...imeBetaServerEventResponseCreatedType.g.cs | 45 + ...ltimeBetaServerEventResponseDone.Json.g.cs | 92 + ...s.RealtimeBetaServerEventResponseDone.g.cs | 72 + ...altimeBetaServerEventResponseDoneType.g.cs | 45 + ...sponseFunctionCallArgumentsDelta.Json.g.cs | 92 + ...entResponseFunctionCallArgumentsDelta.g.cs | 118 + ...esponseFunctionCallArgumentsDeltaType.g.cs | 45 + ...esponseFunctionCallArgumentsDone.Json.g.cs | 92 + ...ventResponseFunctionCallArgumentsDone.g.cs | 119 + ...ResponseFunctionCallArgumentsDoneType.g.cs | 45 + ...entResponseMCPCallArgumentsDelta.Json.g.cs | 92 + ...verEventResponseMCPCallArgumentsDelta.g.cs | 117 + ...ventResponseMCPCallArgumentsDeltaType.g.cs | 45 + ...ventResponseMCPCallArgumentsDone.Json.g.cs | 92 + ...rverEventResponseMCPCallArgumentsDone.g.cs | 106 + ...EventResponseMCPCallArgumentsDoneType.g.cs | 45 + ...verEventResponseMCPCallCompleted.Json.g.cs | 92 + ...taServerEventResponseMCPCallCompleted.g.cs | 82 + ...rverEventResponseMCPCallCompletedType.g.cs | 45 + ...ServerEventResponseMCPCallFailed.Json.g.cs | 92 + ...eBetaServerEventResponseMCPCallFailed.g.cs | 82 + ...aServerEventResponseMCPCallFailedType.g.cs | 45 + ...erEventResponseMCPCallInProgress.Json.g.cs | 92 + ...aServerEventResponseMCPCallInProgress.g.cs | 82 + ...verEventResponseMCPCallInProgressType.g.cs | 45 + ...rverEventResponseOutputItemAdded.Json.g.cs | 92 + ...etaServerEventResponseOutputItemAdded.g.cs | 102 + ...erverEventResponseOutputItemAddedType.g.cs | 45 + ...erverEventResponseOutputItemDone.Json.g.cs | 92 + ...BetaServerEventResponseOutputItemDone.g.cs | 103 + ...ServerEventResponseOutputItemDoneType.g.cs | 45 + ...BetaServerEventResponseTextDelta.Json.g.cs | 92 + ...ltimeBetaServerEventResponseTextDelta.g.cs | 118 + ...eBetaServerEventResponseTextDeltaType.g.cs | 45 + ...eBetaServerEventResponseTextDone.Json.g.cs | 92 + ...altimeBetaServerEventResponseTextDone.g.cs | 119 + ...meBetaServerEventResponseTextDoneType.g.cs | 45 + ...imeBetaServerEventSessionCreated.Json.g.cs | 92 + ...RealtimeBetaServerEventSessionCreated.g.cs | 82 + ...timeBetaServerEventSessionCreatedType.g.cs | 45 + ...imeBetaServerEventSessionUpdated.Json.g.cs | 92 + ...RealtimeBetaServerEventSessionUpdated.g.cs | 81 + ...timeBetaServerEventSessionUpdatedType.g.cs | 45 + ...EventTranscriptionSessionCreated.Json.g.cs | 92 + ...erverEventTranscriptionSessionCreated.g.cs | 76 + ...rEventTranscriptionSessionCreatedType.g.cs | 45 + ...EventTranscriptionSessionUpdated.Json.g.cs | 92 + ...erverEventTranscriptionSessionUpdated.g.cs | 77 + ...rEventTranscriptionSessionUpdatedType.g.cs | 45 + ...AGI.OpenAI.Models.RealtimeClientEvent.g.cs | 53 +- ...meClientEventConversationItemTruncate.g.cs | 4 +- ...timeClientEventInputAudioBufferAppend.g.cs | 10 +- ...timeClientEventInputAudioBufferCommit.g.cs | 11 +- ...els.RealtimeClientEventResponseCancel.g.cs | 4 +- ...els.RealtimeClientEventResponseCreate.g.cs | 14 +- ...dels.RealtimeClientEventSessionUpdate.g.cs | 33 +- ....RealtimeConversationItemFunctionCall.g.cs | 12 +- ...imeConversationItemFunctionCallObject.g.cs | 2 +- ...imeConversationItemFunctionCallOutput.g.cs | 12 +- ...versationItemFunctionCallOutputObject.g.cs | 2 +- ...ltimeConversationItemMessageAssistant.g.cs | 8 +- ...sationItemMessageAssistantContentItem.g.cs | 26 +- ...onItemMessageAssistantContentItemType.g.cs | 14 +- ...onversationItemMessageAssistantObject.g.cs | 2 +- ...RealtimeConversationItemMessageSystem.g.cs | 10 +- ...meConversationItemMessageSystemObject.g.cs | 2 +- ...s.RealtimeConversationItemMessageUser.g.cs | 8 +- ...onversationItemMessageUserContentItem.g.cs | 37 +- ...ationItemMessageUserContentItemDetail.g.cs | 58 + ...rsationItemMessageUserContentItemType.g.cs | 8 +- ...timeConversationItemMessageUserObject.g.cs | 2 +- ...els.RealtimeCreateClientSecretRequest.g.cs | 10 +- ...CreateClientSecretRequestExpiresAfter.g.cs | 13 +- ...ClientSecretRequestExpiresAfterAnchor.g.cs | 2 +- ...ls.RealtimeCreateClientSecretResponse.g.cs | 8 +- ...cretResponseSessionDiscriminator.Json.g.cs | 92 + ...ntSecretResponseSessionDiscriminator.g.cs} | 17 +- ...enAI.Models.RealtimeFunctionTool.Json.g.cs | 92 + ...I.OpenAI.Models.RealtimeFunctionTool.g.cs} | 16 +- ...s.RealtimeFunctionToolParameters.Json.g.cs | 92 + ...odels.RealtimeFunctionToolParameters.g.cs} | 2 +- ...enAI.Models.RealtimeFunctionToolType.g.cs} | 12 +- ...I.Models.RealtimeResponseCreateParams.g.cs | 111 +- ...altimeResponseCreateParamsAudio.Json.g.cs} | 22 +- ...els.RealtimeResponseCreateParamsAudio.g.cs | 43 + ...ResponseCreateParamsAudioOutput.Json.g.cs} | 22 +- ...altimeResponseCreateParamsAudioOutput.g.cs | 57 + ...eResponseCreateParamsOutputModalitie.g.cs} | 16 +- ...ltimeServerEventConversationItemAdded.g.cs | 6 +- ...altimeServerEventConversationItemDone.g.cs | 3 +- ...nItemInputAudioTranscriptionCompleted.g.cs | 10 +- ...ationItemInputAudioTranscriptionDelta.g.cs | 10 +- ...eServerEventConversationItemRetrieved.g.cs | 2 +- ...odels.RealtimeServerEventResponseDone.g.cs | 6 +- ...els.RealtimeServerEventSessionCreated.g.cs | 27 +- ...els.RealtimeServerEventSessionUpdated.g.cs | 25 +- ...erverEventTranscriptionSessionCreated.g.cs | 10 +- ...erverEventTranscriptionSessionUpdated.g.cs | 10 +- ...I.Models.RealtimeSessionCreateRequest.g.cs | 184 +- ...eSessionCreateRequestAudioInputFormat.g.cs | 60 - ...nCreateRequestAudioInputTranscription.g.cs | 82 - ...teRequestAudioInputTranscriptionModel.g.cs | 71 - ...ltimeSessionCreateRequestClientSecret.g.cs | 35 +- ...eRequestClientSecretExpiresAfter.Json.g.cs | 92 - ...CreateRequestClientSecretExpiresAfter.g.cs | 59 - ....RealtimeSessionCreateRequestGA.Json.g.cs} | 22 +- ...Models.RealtimeSessionCreateRequestGA.g.cs | 204 + ...timeSessionCreateRequestGAAudio.Json.g.cs} | 22 +- ....RealtimeSessionCreateRequestGAAudio.g.cs} | 18 +- ...SessionCreateRequestGAAudioInput.Json.g.cs | 92 + ...timeSessionCreateRequestGAAudioInput.g.cs} | 46 +- ...equestGAAudioInputNoiseReduction.Json.g.cs | 92 + ...ateRequestGAAudioInputNoiseReduction.g.cs} | 16 +- ...equestGAAudioInputTurnDetection.Json.g.cs} | 22 +- ...eateRequestGAAudioInputTurnDetection.g.cs} | 26 +- ...estGAAudioInputTurnDetectionEagerness.g.cs | 64 + ...RequestGAAudioInputTurnDetectionType.g.cs} | 23 +- ...ssionCreateRequestGAAudioOutput.Json.g.cs} | 22 +- ...imeSessionCreateRequestGAAudioOutput.g.cs} | 40 +- ...imeSessionCreateRequestGAIncludeItem.g.cs} | 12 +- ...essionCreateRequestGAMaxOutputTokens.g.cs} | 12 +- ...s.RealtimeSessionCreateRequestGAModel.g.cs | 87 + ...SessionCreateRequestGAOutputModalitie.g.cs | 51 + ...reateRequestGAToolDiscriminator.Json.g.cs} | 22 +- ...sionCreateRequestGAToolDiscriminator.g.cs} | 10 +- ...timeSessionCreateRequestGATracingEnum.g.cs | 46 + ...sionCreateRequestGATracingEnum2.Json.g.cs} | 22 +- ...imeSessionCreateRequestGATracingEnum2.g.cs | 73 + ...eateRequestGATracingEnumMetadata.Json.g.cs | 92 + ...ionCreateRequestGATracingEnumMetadata.g.cs | 19 + ...ls.RealtimeSessionCreateRequestGAType.g.cs | 45 + ...eRequestInputAudioTranscription.Json.g.cs} | 22 +- ...nCreateRequestInputAudioTranscription.g.cs | 49 + ...nCreateRequestMaxResponseOutputTokens.g.cs | 45 + ...ealtimeSessionCreateRequestModalitie.g.cs} | 16 +- ...eSessionCreateRequestModalities.Json.g.cs} | 22 +- ...altimeSessionCreateRequestModalities.g.cs} | 2 +- ...els.RealtimeSessionCreateRequestModel.g.cs | 99 - ...ealtimeSessionCreateRequestTool.Json.g.cs} | 22 +- ...els.RealtimeSessionCreateRequestTool.g.cs} | 16 +- ...sionCreateRequestToolParameters.Json.g.cs} | 22 +- ...meSessionCreateRequestToolParameters.g.cs} | 2 +- ...RealtimeSessionCreateRequestToolType.g.cs} | 12 +- ...essionCreateRequestTurnDetection.Json.g.cs | 92 + ...imeSessionCreateRequestTurnDetection.g.cs} | 10 +- ....Models.RealtimeSessionCreateResponse.g.cs | 161 +- ...ls.RealtimeSessionCreateResponseAudio.g.cs | 2 +- ...altimeSessionCreateResponseAudioInput.g.cs | 37 +- ...reateResponseAudioInputNoiseReduction.g.cs | 16 +- ...eResponseAudioInputTranscription.Json.g.cs | 92 - ...CreateResponseAudioInputTranscription.g.cs | 67 - ...CreateResponseAudioInputTurnDetection.g.cs | 98 +- ...onseAudioInputTurnDetectionEagerness.g.cs} | 26 +- ...eResponseAudioInputTurnDetectionType.g.cs} | 16 +- ...ltimeSessionCreateResponseAudioOutput.g.cs | 23 +- ...essionCreateResponseClientSecret.Json.g.cs | 92 + ...timeSessionCreateResponseClientSecret.g.cs | 60 + ...ls.RealtimeSessionCreateResponseModel.g.cs | 87 + ...onCreateResponseOutputModalities.Json.g.cs | 92 - ...timeSessionCreateResponseTracingEnum2.g.cs | 12 +- ...sionCreateResponseTracingEnumMetadata.g.cs | 2 +- ...ls.RealtimeSessionCreateResponseType.g.cs} | 12 +- ...timeTranscriptionSessionCreateRequest.g.cs | 46 +- ...scriptionSessionCreateRequestGA.Json.g.cs} | 22 +- ...meTranscriptionSessionCreateRequestGA.g.cs | 70 + ...ptionSessionCreateRequestGAAudio.Json.g.cs | 92 + ...scriptionSessionCreateRequestGAAudio.g.cs} | 16 +- ...SessionCreateRequestGAAudioInput.Json.g.cs | 92 + ...ptionSessionCreateRequestGAAudioInput.g.cs | 83 + ...equestGAAudioInputNoiseReduction.Json.g.cs | 92 + ...eateRequestGAAudioInputNoiseReduction.g.cs | 48 + ...equestGAAudioInputTurnDetection.Json.g.cs} | 22 +- ...reateRequestGAAudioInputTurnDetection.g.cs | 148 + ...estGAAudioInputTurnDetectionEagerness.g.cs | 64 + ...eRequestGAAudioInputTurnDetectionType.g.cs | 52 + ...ionSessionCreateRequestGAIncludeItem.g.cs} | 12 +- ...nscriptionSessionCreateRequestGAType.g.cs} | 12 +- ...CreateRequestInputAudioNoiseReduction.g.cs | 6 +- ...teRequestInputAudioNoiseReductionType.g.cs | 51 - ...teRequestInputAudioTranscriptionModel.g.cs | 57 - ...ranscriptionSessionCreateRequestModel.g.cs | 57 - ...imeTranscriptionSessionCreateResponse.g.cs | 86 +- ...iptionSessionCreateResponseAudioInput.g.cs | 78 - ...CreateResponseAudioInputTranscription.g.cs | 72 - ...eResponseAudioInputTranscriptionModel.g.cs | 57 - ...eResponseAudioInputTurnDetection.Json.g.cs | 92 - ...ssionCreateResponseClientSecret.Json.g.cs} | 22 +- ...tionSessionCreateResponseClientSecret.g.cs | 65 + ...iptionSessionCreateResponseModalitie.g.cs} | 20 +- ...SessionCreateResponseModalities.Json.g.cs} | 22 +- ...ptionSessionCreateResponseModalities.g.cs} | 2 +- ...sionCreateResponseTurnDetection.Json.g.cs} | 22 +- ...onSessionCreateResponseTurnDetection.g.cs} | 42 +- ...yAGI.OpenAI.Models.RealtimeTruncation.g.cs | 7 +- ....OpenAI.Models.RealtimeTruncationEnum.g.cs | 2 +- ...OpenAI.Models.RealtimeTruncationEnum2.g.cs | 17 +- ...yAGI.OpenAI.Models.ResponseProperties.g.cs | 6 +- .../tryAGI.OpenAI.Models.Session.g.cs | 86 +- .../tryAGI.OpenAI.Models.Session2.Json.g.cs | 92 + .../tryAGI.OpenAI.Models.Session2.g.cs | 226 + ...ryAGI.OpenAI.Models.ToolChoice5.Json.g.cs} | 22 +- ... => tryAGI.OpenAI.Models.ToolChoice5.g.cs} | 50 +- ...tryAGI.OpenAI.Models.ToolsItem5.Json.g.cs} | 22 +- ...s => tryAGI.OpenAI.Models.ToolsItem5.g.cs} | 98 +- ...timeClient.CreateRealtimeClientSecret.g.cs | 13 +- ....RealtimeClient.CreateRealtimeSession.g.cs | 89 +- ...nt.CreateRealtimeTranscriptionSession.g.cs | 19 +- src/libs/tryAGI.OpenAI/openapi.yaml | 3096 +++++++++-- 568 files changed, 33516 insertions(+), 5757 deletions(-) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AudioTranscriptionModel.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NoiseReductionType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversation.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokens.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitie.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormat.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokens.g.cs} (69%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolTypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullable.g.cs} (70%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitie.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitie.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormat.g.cs} (72%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitieNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullable.g.cs} (73%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatus.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReason.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaType.g.cs} (66%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullable.g.cs} (68%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitie.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneType.g.cs} (68%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitieNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullable.g.cs} (69%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetail.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormat.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitie.g.cs} (78%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormatNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullable.g.cs} (79%) delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs} (71%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessNullable.g.cs} (72%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.g.cs} (76%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeNullable.g.cs} (77%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItem.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormat.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokens.g.cs} (76%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormatNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullable.g.cs} (80%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItem.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModel.g.cs} (77%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItemNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullable.g.cs} (78%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormat.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitie.g.cs} (75%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormatNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullable.g.cs} (76%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnum.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAType.g.cs} (78%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullable.g.cs} (79%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokens.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokens.g.cs} (76%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokensNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullable.g.cs} (77%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitie.g.cs} (80%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolTypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullable.g.cs} (81%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1Type.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolType.g.cs} (78%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1TypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullable.g.cs} (79%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModel.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.g.cs} (71%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModelNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessNullable.g.cs} (72%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionType.g.cs} (77%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeNullable.g.cs} (78%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModel.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModelNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModel.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseType.g.cs} (81%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModelNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTypeNullable.g.cs} (82%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs} (73%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessNullable.g.cs} (74%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.g.cs} (77%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeNullable.g.cs} (78%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestType.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItem.g.cs} (78%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModelNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullable.g.cs} (79%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModel.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAType.g.cs} (80%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTypeNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullable.g.cs} (81%) delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeNullable.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelNullable.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItem.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitie.g.cs} (78%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItemNullable.g.cs => tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullable.g.cs} (79%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.ToolChoice3.g.cs => tryAGI.OpenAI.JsonConverters.ToolChoice5.g.cs} (98%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.JsonConverters.ToolsItem4.g.cs => tryAGI.OpenAI.JsonConverters.ToolsItem5.g.cs} (67%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscription.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.g.cs => tryAGI.OpenAI.Models.AudioTranscription.g.cs} (67%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscriptionModel.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReductionType.g.cs => tryAGI.OpenAI.Models.NoiseReductionType.g.cs} (56%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreate.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreate.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDelete.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDelete.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDeleteType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieve.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieve.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieveType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncate.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncate.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppend.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppend.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppendType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClear.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClear.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClearType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommit.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommitType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClear.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClear.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClearType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancel.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancel.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancelType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreate.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreate.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdate.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdate.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdate.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdate.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdateType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponse.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponse.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParams.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParams.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsConversation.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsMaxOutputTokens.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsModalitie.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutputFormat.g.cs => tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsOutputAudioFormat.g.cs} (50%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsTool.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeResponseCreateParamsTool.g.cs => tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsTool.g.cs} (83%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolParameters.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolParameters.g.cs => tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolParameters.g.cs} (86%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Type.g.cs => tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolType.g.cs} (61%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseMaxOutputTokens.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseModalitie.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseObject.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeResponseCreateParamsOutputAudioFormat.g.cs => tryAGI.OpenAI.Models.RealtimeBetaResponseOutputAudioFormat.g.cs} (54%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatus.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetails.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetails.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsError.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsError.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsReason.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsage.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsage.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetails.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetails.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolParameters.Json.g.cs => tryAGI.OpenAI.Models.RealtimeBetaResponseUsageOutputTokenDetails.Json.g.cs} (83%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageOutputTokenDetails.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreated.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreated.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeleted.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeleted.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeletedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrieved.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrieved.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.g.cs => tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrievedType.g.cs} (50%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncated.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncated.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventError.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventError.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorError.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorError.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCleared.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCleared.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferClearedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommitted.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommitted.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommittedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStarted.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStarted.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStartedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStopped.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStopped.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompleted.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompleted.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompletedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailed.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailed.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgress.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgress.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgressType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdated.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdated.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimit.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimit.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDelta.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDelta.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDone.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDone.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDelta.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDelta.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDeltaType.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Parameters.Json.g.cs => tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDone.Json.g.cs} (82%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDone.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAdded.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAdded.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetection.Json.g.cs => tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPart.Json.g.cs} (82%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPart.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPartType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDone.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDone.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePart.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePart.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePartType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreated.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreated.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDone.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDone.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDone.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDone.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDelta.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDelta.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDone.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDone.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompleted.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompleted.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompletedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailed.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailed.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgress.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgress.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgressType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAdded.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAdded.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAddedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDone.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDone.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDelta.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDelta.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDeltaType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDone.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDone.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDoneType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreated.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreated.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdated.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdated.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreated.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreated.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdated.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdated.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdatedType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItemDetail.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction.g.cs => tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.g.cs} (53%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionTool.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTool.g.cs => tryAGI.OpenAI.Models.RealtimeFunctionTool.g.cs} (83%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolParameters.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolParameters.g.cs => tryAGI.OpenAI.Models.RealtimeFunctionToolParameters.g.cs} (87%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolType.g.cs => tryAGI.OpenAI.Models.RealtimeFunctionToolType.g.cs} (64%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeResponseCreateParamsTool.Json.g.cs => tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudio.Json.g.cs} (89%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudio.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolParameters.Json.g.cs => tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudioOutput.Json.g.cs} (88%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudioOutput.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalitie.g.cs => tryAGI.OpenAI.Models.RealtimeResponseCreateParamsOutputModalitie.g.cs} (63%) delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputFormat.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscription.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscriptionModel.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfter.Json.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfter.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudio.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGA.Json.g.cs} (89%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGA.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTool.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudio.Json.g.cs} (89%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudio.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudio.g.cs} (74%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInput.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInput.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInput.g.cs} (58%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputNoiseReduction.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReduction.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputNoiseReduction.g.cs} (73%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReduction.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetection.Json.g.cs} (86%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetection.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetection.g.cs} (87%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputNoiseReductionType.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.g.cs} (51%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutput.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioOutput.Json.g.cs} (88%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutput.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioOutput.g.cs} (55%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestIncludeItem.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAIncludeItem.g.cs} (66%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestMaxOutputTokens.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAMaxOutputTokens.g.cs} (66%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAModel.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAOutputModalitie.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalities.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAToolDiscriminator.Json.g.cs} (87%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolDiscriminator.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAToolDiscriminator.g.cs} (78%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTurnDetection.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum2.Json.g.cs} (88%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum2.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnumMetadata.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnumMetadata.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAType.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscription.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.Json.g.cs} (87%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestMaxResponseOutputTokens.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeResponseCreateParamsModalitie.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalitie.g.cs} (62%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInput.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalities.Json.g.cs} (89%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalities.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalities.g.cs} (88%) delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModel.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTool.Json.g.cs} (91%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTool.g.cs} (90%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolDiscriminator.Json.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolParameters.Json.g.cs} (90%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Parameters.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolParameters.g.cs} (96%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolType.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolType.g.cs} (68%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTurnDetection.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTurnDetection.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTurnDetection.g.cs} (92%) delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTranscription.Json.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTranscription.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.g.cs} (50%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetectionType.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetectionType.g.cs} (57%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseClientSecret.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseClientSecret.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseModel.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseOutputModalities.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateRequestType.g.cs => tryAGI.OpenAI.Models.RealtimeSessionCreateResponseType.g.cs} (70%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.Json.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGA.Json.g.cs} (90%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGA.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudio.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudio.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudio.g.cs} (76%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInput.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInput.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction.Json.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection.Json.g.cs} (87%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseIncludeItem.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAIncludeItem.g.cs} (62%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestType.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAType.g.cs} (75%) delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestModel.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInput.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInput.Json.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseClientSecret.Json.g.cs} (91%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseClientSecret.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalitie.g.cs} (57%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudio.Json.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalities.Json.g.cs} (92%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeSessionCreateResponseOutputModalities.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalities.g.cs} (87%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription.Json.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseTurnDetection.Json.g.cs} (89%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection.g.cs => tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseTurnDetection.g.cs} (52%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.ToolChoice3.Json.g.cs => tryAGI.OpenAI.Models.ToolChoice5.Json.g.cs} (89%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.ToolChoice3.g.cs => tryAGI.OpenAI.Models.ToolChoice5.g.cs} (87%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.ToolsItem4.Json.g.cs => tryAGI.OpenAI.Models.ToolsItem5.Json.g.cs} (89%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.ToolsItem4.g.cs => tryAGI.OpenAI.Models.ToolsItem5.g.cs} (57%) 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 fa25f184..2f40164a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs @@ -205,6 +205,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorApiKeyTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AuditLogActorTypeJsonConverter), @@ -987,6 +989,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ProjectObjectJsonConverter), @@ -1047,6 +1051,174 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemRoleNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentItemTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionVoiceJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionVoiceNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTurnDetectionTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTurnDetectionTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionToolChoiceJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionToolChoiceNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxOutputTokensJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxOutputTokensNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeJsonConverter), @@ -1069,62 +1241,38 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitieJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitieNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormatJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormatNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventResponseCreateTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormatJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormatNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModelJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModelNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormatJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormatNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItemJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItemNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokensJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokensNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModelJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModelNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitieJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitieNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1TypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1TypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTracingEnumNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestIncludeItemNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioFormatNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModelJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModelNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), @@ -1159,6 +1307,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemStatusNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectJsonConverter), @@ -1181,24 +1331,22 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseIncludeItemNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseMaxOutputTokensNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModelJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModelNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseOutputModalitieNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTracingEnumNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItemJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalResponseTypeJsonConverter), @@ -1221,18 +1369,6 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeErrorTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreatedTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionObjectNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionVoiceJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionVoiceNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTurnDetectionTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionTurnDetectionTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionToolChoiceJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionToolChoiceNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxOutputTokensJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionMaxOutputTokensNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionUpdatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionUpdatedTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationCreatedTypeJsonConverter), @@ -1828,7 +1964,7 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.InputVariant3ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateResponseJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoice3JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoice5JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter), @@ -1848,10 +1984,11 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.ToolsItem4JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolsItem5JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.SessionJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.Session2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.Error2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter), @@ -1932,19 +2069,31 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeClientSecret.g.cs index 481907d7..71b941f4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeClientSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeClientSecret.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IRealtimeClient { /// - /// Create realtime session
- /// Create a Realtime session and client secret for either realtime or transcription. + /// Create client secret
+ /// Create a Realtime client secret with an associated session configuration. ///
/// /// The token to cancel the operation with @@ -16,11 +16,14 @@ public partial interface IRealtimeClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create realtime session
- /// Create a Realtime session and client secret for either realtime or transcription. + /// Create client secret
+ /// Create a Realtime client secret with an associated session configuration. ///
/// - /// Configuration for the ephemeral token expiration. + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. /// /// /// Session configuration to use for the client secret. Choose either a realtime
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs index 5723e520..0381cf4d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs @@ -29,48 +29,55 @@ public partial interface IRealtimeClient /// a usable ephemeral API token that can be used to authenticate browser clients
/// for the Realtime API. /// - /// - /// Configuration for input and output audio. - /// /// - /// Configuration options for the generated client secret. + /// Ephemeral key returned by the API. + /// + /// + /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. /// - /// - /// Additional fields to include in server outputs.
- /// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// + /// 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 and should be treated as rough guidance
+ /// rather than the representation understood by the model. /// /// /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
/// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. /// - /// + /// /// Maximum number of output tokens for a single assistant response,
/// inclusive of tool calls. Provide an integer between 1 and 4096 to
/// limit output tokens, or `inf` for the maximum available tokens for a
/// given model. Defaults to `inf`. /// - /// - /// The Realtime model used for this session. - /// - /// + /// /// The set of modalities the model can respond with. To disable audio,
/// set this to ["text"]. /// + /// + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// /// /// Reference to a prompt template and its variables.
/// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). /// + /// + /// The speed of the model's spoken response. 1.0 is the default speed. 0.25 is
+ /// the minimum speed. 1.5 is the maximum speed. This value can only be changed
+ /// in between model turns, not while a response is in progress.
+ /// Default Value: 1 + /// /// - /// Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.
- /// Default Value: 0.8 + /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. /// /// - /// How the model chooses tools. Provide one of the string modes or force a specific
- /// function/MCP tool.
- /// Default Value: auto + /// How the model chooses tools. Options are `auto`, `none`, `required`, or
+ /// specify a function. /// /// - /// Tools available to the model. + /// Tools (functions) available to the model. /// /// /// Configuration options for tracing. Set to null to disable tracing. Once
@@ -80,29 +87,35 @@ public partial interface IRealtimeClient /// /// /// Controls how the realtime conversation is truncated prior to model inference.
- /// The default is `auto`. When set to `retention_ratio`, the server retains a
- /// fraction of the conversation tokens prior to the instructions. + /// The default is `auto`. + /// + /// + /// Configuration for turn detection. Can be set to `null` to turn off. Server
+ /// VAD means that the model will detect the start and end of speech based on
+ /// audio volume and respond at the end of user speech. /// - /// - /// The type of session to create. Always `realtime` for the Realtime API. + /// + /// Example: ash /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateRealtimeSessionAsync( - global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio? audio = default, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? clientSecret = default, - global::System.Collections.Generic.IList? include = default, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret clientSecret, + string? inputAudioFormat = default, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? inputAudioTranscription = default, string? instructions = default, - global::tryAGI.OpenAI.AnyOf? maxOutputTokens = default, - global::System.Collections.Generic.IList? outputModalities = default, + global::tryAGI.OpenAI.AnyOf? maxResponseOutputTokens = default, + global::System.Collections.Generic.IList? modalities = default, + string? outputAudioFormat = default, global::tryAGI.OpenAI.Prompt2? prompt = default, + double? speed = default, double? temperature = default, - global::tryAGI.OpenAI.AnyOf? toolChoice = default, - global::System.Collections.Generic.IList? tools = default, + string? toolChoice = default, + global::System.Collections.Generic.IList? tools = default, global::tryAGI.OpenAI.AnyOf? tracing = default, global::tryAGI.OpenAI.RealtimeTruncation? truncation = default, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestType type = default, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? turnDetection = default, + global::tryAGI.OpenAI.VoiceIdsShared? voice = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs index aa5e651d..2448b361 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs @@ -31,7 +31,7 @@ public partial interface IRealtimeClient /// /// /// The set of items to include in the transcription. Current available items are:
- /// - `item.input_audio_transcription.logprobs` + /// `item.input_audio_transcription.logprobs` /// /// /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
@@ -44,29 +44,18 @@ public partial interface IRealtimeClient /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
/// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. /// - /// - /// Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service. - /// - /// - /// ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).
- /// Example: gpt-4o-transcribe - /// + /// /// /// Configuration for turn detection. Can be set to `null` to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech. /// - /// - /// The type of session to create. Always `transcription` for transcription sessions. - /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateRealtimeTranscriptionSessionAsync( - global::tryAGI.OpenAI.AnyOf model, global::System.Collections.Generic.IList? include = default, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? inputAudioFormat = default, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? inputAudioNoiseReduction = default, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? inputAudioTranscription = default, + global::tryAGI.OpenAI.AudioTranscription? inputAudioTranscription = default, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? turnDetection = default, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType type = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AudioTranscriptionModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AudioTranscriptionModel.g.cs new file mode 100644 index 00000000..c0a593c3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AudioTranscriptionModel.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AudioTranscriptionModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AudioTranscriptionModel 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.AudioTranscriptionModelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AudioTranscriptionModel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AudioTranscriptionModel); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AudioTranscriptionModel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.AudioTranscriptionModelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullable.g.cs new file mode 100644 index 00000000..bb421daf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AudioTranscriptionModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AudioTranscriptionModel? 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.AudioTranscriptionModelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AudioTranscriptionModel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AudioTranscriptionModel?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AudioTranscriptionModel? 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.AudioTranscriptionModelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NoiseReductionType.g.cs new file mode 100644 index 00000000..cff7d82a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NoiseReductionType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class NoiseReductionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.NoiseReductionType 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.NoiseReductionTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.NoiseReductionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.NoiseReductionType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.NoiseReductionType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.NoiseReductionTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullable.g.cs new file mode 100644 index 00000000..2357aba2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NoiseReductionTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class NoiseReductionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.NoiseReductionType? 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.NoiseReductionTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.NoiseReductionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.NoiseReductionType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.NoiseReductionType? 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.NoiseReductionTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateType.g.cs new file mode 100644 index 00000000..8c0de71e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventConversationItemCreateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType 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.RealtimeBetaClientEventConversationItemCreateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullable.g.cs new file mode 100644 index 00000000..1c0b46cb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventConversationItemCreateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? 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.RealtimeBetaClientEventConversationItemCreateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? 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.RealtimeBetaClientEventConversationItemCreateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteType.g.cs new file mode 100644 index 00000000..c4a37c2f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventConversationItemDeleteTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType 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.RealtimeBetaClientEventConversationItemDeleteTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullable.g.cs new file mode 100644 index 00000000..15480307 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventConversationItemDeleteTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? 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.RealtimeBetaClientEventConversationItemDeleteTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? 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.RealtimeBetaClientEventConversationItemDeleteTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveType.g.cs new file mode 100644 index 00000000..1c3d07a8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventConversationItemRetrieveTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType 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.RealtimeBetaClientEventConversationItemRetrieveTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullable.g.cs new file mode 100644 index 00000000..8e48b01d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventConversationItemRetrieveTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? 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.RealtimeBetaClientEventConversationItemRetrieveTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? 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.RealtimeBetaClientEventConversationItemRetrieveTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateType.g.cs new file mode 100644 index 00000000..71e16afd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventConversationItemTruncateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType 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.RealtimeBetaClientEventConversationItemTruncateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullable.g.cs new file mode 100644 index 00000000..dfeb8f1c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventConversationItemTruncateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? 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.RealtimeBetaClientEventConversationItemTruncateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? 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.RealtimeBetaClientEventConversationItemTruncateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendType.g.cs new file mode 100644 index 00000000..ba497a83 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventInputAudioBufferAppendTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType 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.RealtimeBetaClientEventInputAudioBufferAppendTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullable.g.cs new file mode 100644 index 00000000..48f748ea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventInputAudioBufferAppendTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? 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.RealtimeBetaClientEventInputAudioBufferAppendTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? 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.RealtimeBetaClientEventInputAudioBufferAppendTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearType.g.cs new file mode 100644 index 00000000..5dea2f19 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventInputAudioBufferClearTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType 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.RealtimeBetaClientEventInputAudioBufferClearTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullable.g.cs new file mode 100644 index 00000000..7426819c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventInputAudioBufferClearTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? 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.RealtimeBetaClientEventInputAudioBufferClearTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? 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.RealtimeBetaClientEventInputAudioBufferClearTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitType.g.cs new file mode 100644 index 00000000..afc70af2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventInputAudioBufferCommitTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType 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.RealtimeBetaClientEventInputAudioBufferCommitTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullable.g.cs new file mode 100644 index 00000000..00069887 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventInputAudioBufferCommitTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? 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.RealtimeBetaClientEventInputAudioBufferCommitTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? 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.RealtimeBetaClientEventInputAudioBufferCommitTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearType.g.cs new file mode 100644 index 00000000..c99ce593 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventOutputAudioBufferClearTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType 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.RealtimeBetaClientEventOutputAudioBufferClearTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullable.g.cs new file mode 100644 index 00000000..4ef8086d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventOutputAudioBufferClearTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? 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.RealtimeBetaClientEventOutputAudioBufferClearTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? 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.RealtimeBetaClientEventOutputAudioBufferClearTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelType.g.cs new file mode 100644 index 00000000..fc2e3311 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventResponseCancelTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType 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.RealtimeBetaClientEventResponseCancelTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullable.g.cs new file mode 100644 index 00000000..baadd76d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventResponseCancelTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? 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.RealtimeBetaClientEventResponseCancelTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? 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.RealtimeBetaClientEventResponseCancelTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateType.g.cs new file mode 100644 index 00000000..af42be65 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventResponseCreateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType 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.RealtimeBetaClientEventResponseCreateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullable.g.cs new file mode 100644 index 00000000..80050b3e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventResponseCreateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? 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.RealtimeBetaClientEventResponseCreateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? 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.RealtimeBetaClientEventResponseCreateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateType.g.cs new file mode 100644 index 00000000..8337c95c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventSessionUpdateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType 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.RealtimeBetaClientEventSessionUpdateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullable.g.cs new file mode 100644 index 00000000..79705574 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventSessionUpdateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? 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.RealtimeBetaClientEventSessionUpdateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? 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.RealtimeBetaClientEventSessionUpdateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateType.g.cs new file mode 100644 index 00000000..9745a1ca --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventTranscriptionSessionUpdateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType 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.RealtimeBetaClientEventTranscriptionSessionUpdateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullable.g.cs new file mode 100644 index 00000000..f85fb9f0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaClientEventTranscriptionSessionUpdateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? 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.RealtimeBetaClientEventTranscriptionSessionUpdateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? 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.RealtimeBetaClientEventTranscriptionSessionUpdateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversation.g.cs new file mode 100644 index 00000000..58c50219 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversation.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsConversationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation 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.RealtimeBetaResponseCreateParamsConversationExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversationExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullable.g.cs new file mode 100644 index 00000000..83c9d515 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsConversationNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsConversationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? 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.RealtimeBetaResponseCreateParamsConversationExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? 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.RealtimeBetaResponseCreateParamsConversationExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokens.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokens.g.cs new file mode 100644 index 00000000..c5454d2b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokens.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsMaxOutputTokensJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens 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.RealtimeBetaResponseCreateParamsMaxOutputTokensExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokensExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullable.g.cs new file mode 100644 index 00000000..0eac82fa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsMaxOutputTokensNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsMaxOutputTokensNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? 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.RealtimeBetaResponseCreateParamsMaxOutputTokensExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? 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.RealtimeBetaResponseCreateParamsMaxOutputTokensExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitie.g.cs new file mode 100644 index 00000000..1f9ff775 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitie.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsModalitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie 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.RealtimeBetaResponseCreateParamsModalitieExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitieExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullable.g.cs new file mode 100644 index 00000000..497c315d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsModalitieNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsModalitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? 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.RealtimeBetaResponseCreateParamsModalitieExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? 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.RealtimeBetaResponseCreateParamsModalitieExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormat.g.cs new file mode 100644 index 00000000..09233333 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormat.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsOutputAudioFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat 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.RealtimeBetaResponseCreateParamsOutputAudioFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullable.g.cs new file mode 100644 index 00000000..5f4924ed --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsOutputAudioFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? 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.RealtimeBetaResponseCreateParamsOutputAudioFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? 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.RealtimeBetaResponseCreateParamsOutputAudioFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolType.g.cs new file mode 100644 index 00000000..d160a1fd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType 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.RealtimeBetaResponseCreateParamsToolTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullable.g.cs new file mode 100644 index 00000000..115cdb74 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseCreateParamsToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? 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.RealtimeBetaResponseCreateParamsToolTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? 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.RealtimeBetaResponseCreateParamsToolTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokens.g.cs similarity index 69% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokens.g.cs index 4cd56379..2d9e3c7b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokens.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeResponseCreateParamsToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeBetaResponseMaxOutputTokensJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType Read( + public override global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeResponseCreateParamsToolTypeJsonConverter : global:: var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokensExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeResponseCreateParamsToolTypeJsonConverter : global:: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType)numValue; + return (global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType); + return default(global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeResponseCreateParamsToolTypeJsonConverter : global:: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType value, + global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokensExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullable.g.cs similarity index 70% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullable.g.cs index e84aeafa..7378b785 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseMaxOutputTokensNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeResponseCreateParamsToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeBetaResponseMaxOutputTokensNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType? Read( + public override global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeResponseCreateParamsToolTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokensExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeResponseCreateParamsToolTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType)numValue; + return (global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType?); + return default(global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeResponseCreateParamsToolTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType? value, + global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokensExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitie.g.cs new file mode 100644 index 00000000..6efd3b63 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitie.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseModalitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseModalitie 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.RealtimeBetaResponseModalitieExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseModalitie)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseModalitie); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseModalitie value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseModalitieExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullable.g.cs new file mode 100644 index 00000000..3ccb03c4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseModalitieNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseModalitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? 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.RealtimeBetaResponseModalitieExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseModalitie)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseModalitie?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? 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.RealtimeBetaResponseModalitieExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObject.g.cs new file mode 100644 index 00000000..102e9b4a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseObject 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.RealtimeBetaResponseObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullable.g.cs new file mode 100644 index 00000000..542a52fc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseObject? 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.RealtimeBetaResponseObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseObject? 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.RealtimeBetaResponseObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormat.g.cs similarity index 72% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitie.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormat.g.cs index a7d58004..c6cb6c94 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitie.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormat.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeResponseCreateParamsModalitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeBetaResponseOutputAudioFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie Read( + public override global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeResponseCreateParamsModalitieJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitieExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormatExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeResponseCreateParamsModalitieJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie)numValue; + return (global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie); + return default(global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeResponseCreateParamsModalitieJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie value, + global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitieExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormatExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitieNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullable.g.cs similarity index 73% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitieNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullable.g.cs index 68a21bfa..99c0bdc2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsModalitieNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeResponseCreateParamsModalitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeBetaResponseOutputAudioFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie? Read( + public override global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeResponseCreateParamsModalitieNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitieExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormatExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeResponseCreateParamsModalitieNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie)numValue; + return (global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie?); + return default(global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeResponseCreateParamsModalitieNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie? value, + global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitieExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormatExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatus.g.cs new file mode 100644 index 00000000..c7c0c0af --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseStatus 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.RealtimeBetaResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReason.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReason.g.cs new file mode 100644 index 00000000..32adcc34 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReason.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseStatusDetailsReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason 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.RealtimeBetaResponseStatusDetailsReasonExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReasonExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullable.g.cs new file mode 100644 index 00000000..87b0d2ce --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseStatusDetailsReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? 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.RealtimeBetaResponseStatusDetailsReasonExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? 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.RealtimeBetaResponseStatusDetailsReasonExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsType.g.cs new file mode 100644 index 00000000..3a0e5ab6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseStatusDetailsTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType 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.RealtimeBetaResponseStatusDetailsTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullable.g.cs new file mode 100644 index 00000000..f0787409 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseStatusDetailsTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? 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.RealtimeBetaResponseStatusDetailsTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? 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.RealtimeBetaResponseStatusDetailsTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullable.g.cs new file mode 100644 index 00000000..471c1250 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaResponseStatus? 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.RealtimeBetaResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaResponseStatus? 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.RealtimeBetaResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedType.g.cs new file mode 100644 index 00000000..a30f13c7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType 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.RealtimeBetaServerEventConversationItemCreatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullable.g.cs new file mode 100644 index 00000000..566645d7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? 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.RealtimeBetaServerEventConversationItemCreatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? 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.RealtimeBetaServerEventConversationItemCreatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedType.g.cs new file mode 100644 index 00000000..40e8b627 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemDeletedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType 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.RealtimeBetaServerEventConversationItemDeletedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullable.g.cs new file mode 100644 index 00000000..7210b966 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemDeletedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? 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.RealtimeBetaServerEventConversationItemDeletedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? 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.RealtimeBetaServerEventConversationItemDeletedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs new file mode 100644 index 00000000..35eaa35a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullable.g.cs new file mode 100644 index 00000000..ec2d7bb8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.g.cs new file mode 100644 index 00000000..cb93bcb2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullable.g.cs new file mode 100644 index 00000000..7d0e85b1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.g.cs new file mode 100644 index 00000000..60a89062 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullable.g.cs new file mode 100644 index 00000000..f85e778d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.g.cs new file mode 100644 index 00000000..ae982401 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullable.g.cs new file mode 100644 index 00000000..32d50489 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedType.g.cs new file mode 100644 index 00000000..d0017695 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemRetrievedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType 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.RealtimeBetaServerEventConversationItemRetrievedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullable.g.cs new file mode 100644 index 00000000..07573dcc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemRetrievedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? 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.RealtimeBetaServerEventConversationItemRetrievedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? 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.RealtimeBetaServerEventConversationItemRetrievedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedType.g.cs new file mode 100644 index 00000000..18745c32 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemTruncatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType 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.RealtimeBetaServerEventConversationItemTruncatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullable.g.cs new file mode 100644 index 00000000..1aaefeac --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventConversationItemTruncatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? 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.RealtimeBetaServerEventConversationItemTruncatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? 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.RealtimeBetaServerEventConversationItemTruncatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorType.g.cs new file mode 100644 index 00000000..ad3dd2a9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventErrorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType 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.RealtimeBetaServerEventErrorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventErrorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullable.g.cs new file mode 100644 index 00000000..7bc4e01b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventErrorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? 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.RealtimeBetaServerEventErrorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? 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.RealtimeBetaServerEventErrorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedType.g.cs new file mode 100644 index 00000000..1625d6d8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferClearedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType 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.RealtimeBetaServerEventInputAudioBufferClearedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullable.g.cs new file mode 100644 index 00000000..9702fb43 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferClearedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? 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.RealtimeBetaServerEventInputAudioBufferClearedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? 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.RealtimeBetaServerEventInputAudioBufferClearedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedType.g.cs new file mode 100644 index 00000000..4ebe9df7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferCommittedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType 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.RealtimeBetaServerEventInputAudioBufferCommittedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullable.g.cs new file mode 100644 index 00000000..d78675b2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferCommittedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? 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.RealtimeBetaServerEventInputAudioBufferCommittedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? 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.RealtimeBetaServerEventInputAudioBufferCommittedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedType.g.cs new file mode 100644 index 00000000..229aade4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType 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.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullable.g.cs new file mode 100644 index 00000000..a6e99660 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? 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.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? 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.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.g.cs new file mode 100644 index 00000000..5a5b998c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType 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.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullable.g.cs new file mode 100644 index 00000000..7ad12bf8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? 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.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? 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.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.g.cs new file mode 100644 index 00000000..ff6fe96b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType 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.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeNullable.g.cs new file mode 100644 index 00000000..3be09634 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType? 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.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType? 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.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedType.g.cs new file mode 100644 index 00000000..53cb4b3d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventMCPListToolsCompletedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType 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.RealtimeBetaServerEventMCPListToolsCompletedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullable.g.cs new file mode 100644 index 00000000..0254ad1b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventMCPListToolsCompletedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? 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.RealtimeBetaServerEventMCPListToolsCompletedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? 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.RealtimeBetaServerEventMCPListToolsCompletedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedType.g.cs new file mode 100644 index 00000000..a2fd86ce --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventMCPListToolsFailedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType 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.RealtimeBetaServerEventMCPListToolsFailedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullable.g.cs new file mode 100644 index 00000000..749b93cf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventMCPListToolsFailedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? 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.RealtimeBetaServerEventMCPListToolsFailedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? 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.RealtimeBetaServerEventMCPListToolsFailedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressType.g.cs new file mode 100644 index 00000000..1e1180dc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventMCPListToolsInProgressTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType 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.RealtimeBetaServerEventMCPListToolsInProgressTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullable.g.cs new file mode 100644 index 00000000..e4e55a2b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventMCPListToolsInProgressTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? 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.RealtimeBetaServerEventMCPListToolsInProgressTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? 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.RealtimeBetaServerEventMCPListToolsInProgressTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.g.cs new file mode 100644 index 00000000..811e71b1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName 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.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullable.g.cs new file mode 100644 index 00000000..f1bd0d19 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? 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.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? 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.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedType.g.cs new file mode 100644 index 00000000..0ef925d1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventRateLimitsUpdatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType 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.RealtimeBetaServerEventRateLimitsUpdatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullable.g.cs new file mode 100644 index 00000000..8af5e7b7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventRateLimitsUpdatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? 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.RealtimeBetaServerEventRateLimitsUpdatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? 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.RealtimeBetaServerEventRateLimitsUpdatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaType.g.cs new file mode 100644 index 00000000..232b68b3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseAudioDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType 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.RealtimeBetaServerEventResponseAudioDeltaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullable.g.cs new file mode 100644 index 00000000..dab5b0d1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseAudioDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? 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.RealtimeBetaServerEventResponseAudioDeltaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? 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.RealtimeBetaServerEventResponseAudioDeltaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneType.g.cs new file mode 100644 index 00000000..1118442b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseAudioDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType 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.RealtimeBetaServerEventResponseAudioDoneTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullable.g.cs new file mode 100644 index 00000000..88b9f7f5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseAudioDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? 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.RealtimeBetaServerEventResponseAudioDoneTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? 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.RealtimeBetaServerEventResponseAudioDoneTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaType.g.cs similarity index 66% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaType.g.cs index 3085ce94..2fefa373 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType Read( + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeJsonC var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeJsonC case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType)numValue; + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType); + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeJsonC /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType value, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullable.g.cs similarity index 68% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullable.g.cs index db718580..d8b8ade5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType? Read( + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNulla var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNulla case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType)numValue; + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType?); + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeNulla /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType? value, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneType.g.cs new file mode 100644 index 00000000..5db4deff --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseAudioTranscriptDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType 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.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullable.g.cs new file mode 100644 index 00000000..c3c978c5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseAudioTranscriptDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? 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.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? 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.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartType.g.cs new file mode 100644 index 00000000..3fd46fd3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseContentPartAddedPartTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType 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.RealtimeBetaServerEventResponseContentPartAddedPartTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullable.g.cs new file mode 100644 index 00000000..87fe3412 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseContentPartAddedPartTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? 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.RealtimeBetaServerEventResponseContentPartAddedPartTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? 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.RealtimeBetaServerEventResponseContentPartAddedPartTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedType.g.cs new file mode 100644 index 00000000..7e5e6894 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseContentPartAddedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType 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.RealtimeBetaServerEventResponseContentPartAddedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullable.g.cs new file mode 100644 index 00000000..77e90bdb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseContentPartAddedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? 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.RealtimeBetaServerEventResponseContentPartAddedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? 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.RealtimeBetaServerEventResponseContentPartAddedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartType.g.cs new file mode 100644 index 00000000..df672ef4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseContentPartDonePartTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType 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.RealtimeBetaServerEventResponseContentPartDonePartTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullable.g.cs new file mode 100644 index 00000000..8c09cb5c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseContentPartDonePartTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? 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.RealtimeBetaServerEventResponseContentPartDonePartTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? 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.RealtimeBetaServerEventResponseContentPartDonePartTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneType.g.cs new file mode 100644 index 00000000..6a961d49 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseContentPartDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType 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.RealtimeBetaServerEventResponseContentPartDoneTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullable.g.cs new file mode 100644 index 00000000..c8786c11 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseContentPartDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? 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.RealtimeBetaServerEventResponseContentPartDoneTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? 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.RealtimeBetaServerEventResponseContentPartDoneTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedType.g.cs new file mode 100644 index 00000000..5d3a2438 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType 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.RealtimeBetaServerEventResponseCreatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullable.g.cs new file mode 100644 index 00000000..fa265214 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? 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.RealtimeBetaServerEventResponseCreatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? 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.RealtimeBetaServerEventResponseCreatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneType.g.cs new file mode 100644 index 00000000..b17bb9a1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType 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.RealtimeBetaServerEventResponseDoneTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullable.g.cs new file mode 100644 index 00000000..b442cc7d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? 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.RealtimeBetaServerEventResponseDoneTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? 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.RealtimeBetaServerEventResponseDoneTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.g.cs new file mode 100644 index 00000000..1ba9f3aa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullable.g.cs new file mode 100644 index 00000000..d20777fd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.g.cs new file mode 100644 index 00000000..2d909c77 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullable.g.cs new file mode 100644 index 00000000..0db935e3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.g.cs new file mode 100644 index 00000000..5fa2ea50 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType 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.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullable.g.cs new file mode 100644 index 00000000..a4fd8092 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? 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.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? 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.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.g.cs new file mode 100644 index 00000000..33f8e09d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType 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.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullable.g.cs new file mode 100644 index 00000000..76118d50 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? 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.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? 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.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedType.g.cs new file mode 100644 index 00000000..0341a4a1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallCompletedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType 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.RealtimeBetaServerEventResponseMCPCallCompletedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullable.g.cs new file mode 100644 index 00000000..f1e484a1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallCompletedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? 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.RealtimeBetaServerEventResponseMCPCallCompletedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? 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.RealtimeBetaServerEventResponseMCPCallCompletedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedType.g.cs new file mode 100644 index 00000000..c8fdef06 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallFailedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType 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.RealtimeBetaServerEventResponseMCPCallFailedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullable.g.cs new file mode 100644 index 00000000..2abd3ece --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallFailedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? 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.RealtimeBetaServerEventResponseMCPCallFailedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? 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.RealtimeBetaServerEventResponseMCPCallFailedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressType.g.cs new file mode 100644 index 00000000..e81a5f3f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallInProgressTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType 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.RealtimeBetaServerEventResponseMCPCallInProgressTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullable.g.cs new file mode 100644 index 00000000..27e94caf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseMCPCallInProgressTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? 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.RealtimeBetaServerEventResponseMCPCallInProgressTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? 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.RealtimeBetaServerEventResponseMCPCallInProgressTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedType.g.cs new file mode 100644 index 00000000..28cd8370 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseOutputItemAddedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType 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.RealtimeBetaServerEventResponseOutputItemAddedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullable.g.cs new file mode 100644 index 00000000..4c8356e4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseOutputItemAddedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? 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.RealtimeBetaServerEventResponseOutputItemAddedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? 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.RealtimeBetaServerEventResponseOutputItemAddedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneType.g.cs new file mode 100644 index 00000000..e98c3363 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseOutputItemDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType 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.RealtimeBetaServerEventResponseOutputItemDoneTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullable.g.cs new file mode 100644 index 00000000..772d1da3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseOutputItemDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? 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.RealtimeBetaServerEventResponseOutputItemDoneTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? 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.RealtimeBetaServerEventResponseOutputItemDoneTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaType.g.cs new file mode 100644 index 00000000..9b7ff8e1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseTextDeltaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType 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.RealtimeBetaServerEventResponseTextDeltaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullable.g.cs new file mode 100644 index 00000000..9f537c03 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventResponseTextDeltaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? 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.RealtimeBetaServerEventResponseTextDeltaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? 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.RealtimeBetaServerEventResponseTextDeltaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneType.g.cs similarity index 68% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitie.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneType.g.cs index b693647a..f53f3c05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitie.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestOutputModalitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeBetaServerEventResponseTextDoneTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie Read( + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestOutputModalitieJsonConverter : g var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitieExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestOutputModalitieJsonConverter : g case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie)numValue; + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie); + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestOutputModalitieJsonConverter : g /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie value, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitieExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitieNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullable.g.cs similarity index 69% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitieNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullable.g.cs index c17a0949..1bb94dae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestOutputModalitieNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestOutputModalitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeBetaServerEventResponseTextDoneTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie? Read( + public override global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestOutputModalitieNullableJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitieExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestOutputModalitieNullableJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie)numValue; + return (global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie?); + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestOutputModalitieNullableJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie? value, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitieExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedType.g.cs new file mode 100644 index 00000000..3d4c2c3a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventSessionCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType 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.RealtimeBetaServerEventSessionCreatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullable.g.cs new file mode 100644 index 00000000..8f1fb851 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventSessionCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? 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.RealtimeBetaServerEventSessionCreatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? 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.RealtimeBetaServerEventSessionCreatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedType.g.cs new file mode 100644 index 00000000..6faa009e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventSessionUpdatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType 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.RealtimeBetaServerEventSessionUpdatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullable.g.cs new file mode 100644 index 00000000..f765fc72 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventSessionUpdatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? 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.RealtimeBetaServerEventSessionUpdatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? 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.RealtimeBetaServerEventSessionUpdatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedType.g.cs new file mode 100644 index 00000000..cb554129 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventTranscriptionSessionCreatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType 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.RealtimeBetaServerEventTranscriptionSessionCreatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullable.g.cs new file mode 100644 index 00000000..bb256c4e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? 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.RealtimeBetaServerEventTranscriptionSessionCreatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? 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.RealtimeBetaServerEventTranscriptionSessionCreatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedType.g.cs new file mode 100644 index 00000000..ffd989f4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventTranscriptionSessionUpdatedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType 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.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullable.g.cs new file mode 100644 index 00000000..ca2967e7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? 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.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? 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.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetail.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetail.g.cs new file mode 100644 index 00000000..3b115ec1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetail.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeConversationItemMessageUserContentItemDetailJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail 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.RealtimeConversationItemMessageUserContentItemDetailExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetailExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullable.g.cs new file mode 100644 index 00000000..2f39ee97 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeConversationItemMessageUserContentItemDetailNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? 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.RealtimeConversationItemMessageUserContentItemDetailExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? 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.RealtimeConversationItemMessageUserContentItemDetailExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolType.g.cs new file mode 100644 index 00000000..75f4c705 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeFunctionToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeFunctionToolType 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.RealtimeFunctionToolTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeFunctionToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeFunctionToolType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeFunctionToolType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeFunctionToolTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullable.g.cs new file mode 100644 index 00000000..8554a219 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeFunctionToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeFunctionToolType? 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.RealtimeFunctionToolTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeFunctionToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeFunctionToolType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeFunctionToolType? 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.RealtimeFunctionToolTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitie.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormat.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitie.g.cs index 6546ae96..563b1588 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitie.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeResponseCreateParamsOutputAudioFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeResponseCreateParamsOutputModalitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat Read( + public override global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeResponseCreateParamsOutputAudioFormatJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormatExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitieExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeResponseCreateParamsOutputAudioFormatJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat)numValue; + return (global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat); + return default(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeResponseCreateParamsOutputAudioFormatJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat value, + global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormatExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitieExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormatNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullable.g.cs similarity index 79% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormatNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullable.g.cs index 71c0b503..5ae95194 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormatNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputModalitieNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeResponseCreateParamsOutputAudioFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeResponseCreateParamsOutputModalitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat? Read( + public override global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeResponseCreateParamsOutputAudioFormatNullableJsonCon var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormatExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitieExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeResponseCreateParamsOutputAudioFormatNullableJsonCon case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat)numValue; + return (global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat?); + return default(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeResponseCreateParamsOutputAudioFormatNullableJsonCon /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat? value, + global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormatExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitieExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.g.cs deleted file mode 100644 index 1d458c82..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor 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.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorNullable.g.cs deleted file mode 100644 index 00ad9d7f..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor? 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.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor? 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.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs similarity index 71% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs index c77425d6..4cb3a03c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessNullable.g.cs similarity index 72% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessNullable.g.cs index 0b16e831..56063a2f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.g.cs similarity index 76% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.g.cs index 68db778d..9c0a6d79 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeJso var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeJso case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeJso /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeNullable.g.cs similarity index 77% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeNullable.g.cs index 4acde434..86895c4b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNul var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNul case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeNul /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItem.g.cs new file mode 100644 index 00000000..8c351fb7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItem.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeSessionCreateRequestGAIncludeItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem 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.RealtimeSessionCreateRequestGAIncludeItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullable.g.cs new file mode 100644 index 00000000..226349fd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAIncludeItemNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeSessionCreateRequestGAIncludeItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? 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.RealtimeSessionCreateRequestGAIncludeItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? 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.RealtimeSessionCreateRequestGAIncludeItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokens.g.cs similarity index 76% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormat.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokens.g.cs index 8e4957aa..1ff3705b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokens.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioOutputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAMaxOutputTokensJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioOutputFormatJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormatExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokensExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioOutputFormatJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestAudioOutputFormatJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormatExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokensExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormatNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullable.g.cs similarity index 80% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormatNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullable.g.cs index a287af26..c2d6e741 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormatNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAMaxOutputTokensNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioOutputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAMaxOutputTokensNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioOutputFormatNullableJsonCon var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormatExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokensExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioOutputFormatNullableJsonCon case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestAudioOutputFormatNullableJsonCon /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormatExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokensExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModel.g.cs similarity index 77% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItem.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModel.g.cs index 4ffdedb1..98ad0c8b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModel.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestIncludeItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestIncludeItemJsonConverter : globa var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItemExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModelExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestIncludeItemJsonConverter : globa case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestIncludeItemJsonConverter : globa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItemExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModelExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItemNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullable.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItemNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullable.g.cs index a28744fe..3e3d1180 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestIncludeItemNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAModelNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestIncludeItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestIncludeItemNullableJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItemExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModelExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestIncludeItemNullableJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestIncludeItemNullableJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItemExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModelExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitie.g.cs similarity index 75% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormat.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitie.g.cs index 2a19aac0..4dcca2c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitie.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAOutputModalitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputFormatJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormatExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitieExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputFormatJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestAudioInputFormatJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormatExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitieExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormatNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullable.g.cs similarity index 76% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormatNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullable.g.cs index c32631b4..3330c3a7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormatNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAOutputModalitieNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGAOutputModalitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputFormatNullableJsonConv var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormatExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitieExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputFormatNullableJsonConv case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputFormatNullableJsonConv /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormatExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitieExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnum.g.cs new file mode 100644 index 00000000..0ad5615f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnum.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeSessionCreateRequestGATracingEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum 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.RealtimeSessionCreateRequestGATracingEnumExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnumExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullable.g.cs new file mode 100644 index 00000000..44c258c8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATracingEnumNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeSessionCreateRequestGATracingEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? 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.RealtimeSessionCreateRequestGATracingEnumExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? 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.RealtimeSessionCreateRequestGATracingEnumExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAType.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAType.g.cs index f221f217..eb838b77 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGATypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestType Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestTypeJsonConverter : global::Syst var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestTypeJsonConverter : global::Syst case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestType)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestType); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestTypeJsonConverter : global::Syst /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestType value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullable.g.cs similarity index 79% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullable.g.cs index 146b4ad3..8d4f2816 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestGATypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestType? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestTypeNullableJsonConverter : glob var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestTypeNullableJsonConverter : glob case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestType)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestType?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestTypeNullableJsonConverter : glob /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestType? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokens.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokens.g.cs similarity index 76% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokens.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokens.g.cs index 512c45b1..16a55add 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokens.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokens.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestMaxOutputTokensJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestMaxResponseOutputTokensJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestMaxOutputTokensJsonConverter : g var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokensExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokensExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestMaxOutputTokensJsonConverter : g case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestMaxOutputTokensJsonConverter : g /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokensExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokensExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokensNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullable.g.cs similarity index 77% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokensNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullable.g.cs index c399804a..dbc891c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxOutputTokensNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestMaxResponseOutputTokensNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestMaxOutputTokensNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestMaxResponseOutputTokensNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestMaxOutputTokensNullableJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokensExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokensExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestMaxOutputTokensNullableJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestMaxOutputTokensNullableJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokensExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokensExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitie.g.cs similarity index 80% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitie.g.cs index 7df9f712..ccebb9e4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitie.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateResponseToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestModalitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateResponseToolTypeJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitieExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateResponseToolTypeJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateResponseToolTypeJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitieExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullable.g.cs similarity index 81% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullable.g.cs index 0f4eb892..0f09717c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModalitieNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateResponseToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestModalitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateResponseToolTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitieExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateResponseToolTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateResponseToolTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitieExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1Type.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolType.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1Type.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolType.g.cs index 56f198f9..79cd74e3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1Type.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestToolVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestToolVariant1TypeJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1TypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestToolVariant1TypeJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestToolVariant1TypeJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1TypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullable.g.cs similarity index 79% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1TypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullable.g.cs index 6dce227e..455486f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1TypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestToolVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateRequestToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestToolVariant1TypeNullableJsonConv var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1TypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestToolVariant1TypeNullableJsonConv case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestToolVariant1TypeNullableJsonConv /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type? value, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.g.cs similarity index 71% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModel.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.g.cs index e37077a2..b0d6e15e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputTranscriptionModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTranscriptionModelJson var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModelExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputTranscriptionModelJson case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestAudioInputTranscriptionModelJson /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel value, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModelExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModelNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessNullable.g.cs similarity index 72% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModelNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessNullable.g.cs index e1823e37..4daec218 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModelNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputTranscriptionModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTranscriptionModelNull var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModelExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputTranscriptionModelNull case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputTranscriptionModelNull /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel? value, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModelExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionType.g.cs similarity index 77% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionType.g.cs index b83efe1f..96ad0308 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateResponseAudioInputTurnDetectionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeJson var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeJson case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeJson /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType value, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeNullable.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeNullable.g.cs index 2520b447..552a3f4a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateResponseAudioInputTurnDetectionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNull var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNull case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeNull /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType? value, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModel.g.cs new file mode 100644 index 00000000..a179dd81 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModel.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeSessionCreateResponseModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel 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.RealtimeSessionCreateResponseModelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseModelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModelNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModelNullable.g.cs new file mode 100644 index 00000000..960115dc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseModelNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeSessionCreateResponseModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel? 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.RealtimeSessionCreateResponseModelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel? 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.RealtimeSessionCreateResponseModelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseType.g.cs similarity index 81% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModel.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseType.g.cs index 8e5e93bc..ec761d11 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestModelJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestModelExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeSessionCreateResponseTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestModelJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeSessionCreateRequestModelJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel value, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModelExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModelNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTypeNullable.g.cs similarity index 82% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModelNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTypeNullable.g.cs index 6e84176d..a5408897 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestModelNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeSessionCreateRequestModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeSessionCreateResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel? Read( + public override global::tryAGI.OpenAI.RealtimeSessionCreateResponseType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeSessionCreateRequestModelNullableJsonConverter : glo var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeSessionCreateRequestModelExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeSessionCreateResponseTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeSessionCreateRequestModelNullableJsonConverter : glo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel)numValue; + return (global::tryAGI.OpenAI.RealtimeSessionCreateResponseType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel?); + return default(global::tryAGI.OpenAI.RealtimeSessionCreateResponseType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeSessionCreateRequestModelNullableJsonConverter : glo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel? value, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModelExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs similarity index 73% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs index c87e29e1..0124ca4f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioNoiseRedu var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioNoiseRedu case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioNoiseRedu /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessNullable.g.cs similarity index 74% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessNullable.g.cs index 88dc79e8..a57f1ce6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel? Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioTranscrip var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioTranscrip case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel?); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioTranscrip /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel? value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.g.cs similarity index 77% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.g.cs index bc3fa479..92f4b07d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseRed var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseRed case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseRed /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeNullable.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeNullable.g.cs index e0220c89..ebbd0ff2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType? Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseRed var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseRed case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType?); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseRed /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType? value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItem.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItem.g.cs index 1530a6f9..a849aa30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItem.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateRequestTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateRequestGAIncludeItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestTypeJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItemExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateRequestTypeJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeTranscriptionSessionCreateRequestTypeJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItemExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModelNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullable.g.cs similarity index 79% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModelNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullable.g.cs index d0c421cf..80ec3629 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModelNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateRequestModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateRequestGAIncludeItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel? Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestModelNullableJsonCo var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModelExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItemExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateRequestModelNullableJsonCo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel?); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestModelNullableJsonCo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel? value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModelExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItemExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAType.g.cs similarity index 80% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModel.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAType.g.cs index 3138c715..de8c06b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateRequestModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateRequestGATypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestModelJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModelExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGATypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateRequestModelJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeTranscriptionSessionCreateRequestModelJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModelExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGATypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullable.g.cs similarity index 81% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullable.g.cs index 98a690dc..c4a334bd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateRequestTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateRequestGATypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType? Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestTypeNullableJsonCon var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGATypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateRequestTypeNullableJsonCon case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType?); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeTranscriptionSessionCreateRequestTypeNullableJsonCon /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType? value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGATypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeNullable.g.cs deleted file mode 100644 index 0def9503..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType? 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.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType? 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.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.g.cs deleted file mode 100644 index a94c347f..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel 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.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.g.cs deleted file mode 100644 index 30841e2e..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel 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.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelNullable.g.cs deleted file mode 100644 index 286b4560..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel? 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.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel? 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.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitie.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItem.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitie.g.cs index 86de8c88..0246f25f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitie.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateResponseIncludeItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateResponseModalitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateResponseIncludeItemJsonCon var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItemExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitieExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateResponseIncludeItemJsonCon case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RealtimeTranscriptionSessionCreateResponseIncludeItemJsonCon /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItemExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitieExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItemNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullable.g.cs similarity index 79% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItemNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullable.g.cs index d8726cde..d25b9fae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseIncludeItemNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseModalitieNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RealtimeTranscriptionSessionCreateResponseIncludeItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeTranscriptionSessionCreateResponseModalitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem? Read( + public override global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RealtimeTranscriptionSessionCreateResponseIncludeItemNullabl var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItemExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitieExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RealtimeTranscriptionSessionCreateResponseIncludeItemNullabl case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem)numValue; + return (global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem?); + return default(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RealtimeTranscriptionSessionCreateResponseIncludeItemNullabl /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem? value, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItemExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitieExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session.g.cs index aa9fd14a..4707f098 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session.g.cs @@ -17,44 +17,44 @@ public class SessionJsonConverter : global::System.Text.Json.Serialization.JsonC var readerCopy = reader; - global::tryAGI.OpenAI.RealtimeSessionCreateRequest? realtimeCreateRequest = default; + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? realtimeCreateRequestGA = default; try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest).Name}"); - realtimeCreateRequest = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA).Name}"); + realtimeCreateRequestGA = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); } catch (global::System.Text.Json.JsonException) { } readerCopy = reader; - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? realtimeTranscriptionCreateRequest = default; + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? realtimeTranscriptionCreateRequestGA = default; try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest).Name}"); - realtimeTranscriptionCreateRequest = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA).Name}"); + realtimeTranscriptionCreateRequestGA = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); } catch (global::System.Text.Json.JsonException) { } var result = new global::tryAGI.OpenAI.Session( - realtimeCreateRequest, - realtimeTranscriptionCreateRequest + realtimeCreateRequestGA, + realtimeTranscriptionCreateRequestGA ); - if (realtimeCreateRequest != null) + if (realtimeCreateRequestGA != null) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - else if (realtimeTranscriptionCreateRequest != null) + else if (realtimeTranscriptionCreateRequestGA != null) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -70,17 +70,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsRealtimeCreateRequest) + if (value.IsRealtimeCreateRequestGA) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RealtimeCreateRequest, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RealtimeCreateRequestGA, typeInfo); } - else if (value.IsRealtimeTranscriptionCreateRequest) + else if (value.IsRealtimeTranscriptionCreateRequestGA) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RealtimeTranscriptionCreateRequest, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RealtimeTranscriptionCreateRequestGA, 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 new file mode 100644 index 00000000..a260b234 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class Session2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Session2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.RealtimeSessionCreateResponse? realtimeSessionCreateResponse = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse).Name}"); + realtimeSessionCreateResponse = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? realtimeTranscriptionSessionCreateResponse = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse).Name}"); + realtimeTranscriptionSessionCreateResponse = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.Session2( + realtimeSessionCreateResponse, + realtimeTranscriptionSessionCreateResponse + ); + + if (realtimeSessionCreateResponse != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (realtimeTranscriptionSessionCreateResponse != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Session2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsRealtimeSessionCreateResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RealtimeSessionCreateResponse, typeInfo); + } + else if (value.IsRealtimeTranscriptionSessionCreateResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RealtimeTranscriptionSessionCreateResponse, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoice3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoice5.g.cs similarity index 98% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoice3.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoice5.g.cs index ef7e0506..79d41454 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoice3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoice5.g.cs @@ -4,10 +4,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class ToolChoice3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ToolChoice5JsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.ToolChoice3 Read( + public override global::tryAGI.OpenAI.ToolChoice5 Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -88,7 +88,7 @@ public class ToolChoice3JsonConverter : global::System.Text.Json.Serialization.J { } - var result = new global::tryAGI.OpenAI.ToolChoice3( + var result = new global::tryAGI.OpenAI.ToolChoice5( choiceOptions, choiceAllowed, choiceTypes, @@ -140,7 +140,7 @@ public class ToolChoice3JsonConverter : global::System.Text.Json.Serialization.J /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.ToolChoice3 value, + global::tryAGI.OpenAI.ToolChoice5 value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem5.g.cs similarity index 67% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem4.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem5.g.cs index 3010a07a..50577a78 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem5.g.cs @@ -4,10 +4,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class ToolsItem4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ToolsItem5JsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.ToolsItem4 Read( + public override global::tryAGI.OpenAI.ToolsItem5 Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -17,41 +17,41 @@ public class ToolsItem4JsonConverter : global::System.Text.Json.Serialization.Js var readerCopy = reader; - global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1? value1 = default; + global::tryAGI.OpenAI.RealtimeFunctionTool? realtimeFunctionTool = default; try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeFunctionTool).Name}"); + realtimeFunctionTool = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); } catch (global::System.Text.Json.JsonException) { } readerCopy = reader; - global::tryAGI.OpenAI.MCPTool? value2 = default; + global::tryAGI.OpenAI.MCPTool? mCPTool = default; try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + mCPTool = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); } catch (global::System.Text.Json.JsonException) { } - var result = new global::tryAGI.OpenAI.ToolsItem4( - value1, - value2 + var result = new global::tryAGI.OpenAI.ToolsItem5( + realtimeFunctionTool, + mCPTool ); - if (value1 != null) + if (realtimeFunctionTool != null) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeFunctionTool).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - else if (value2 != null) + else if (mCPTool != null) { 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}"); @@ -64,23 +64,23 @@ public class ToolsItem4JsonConverter : global::System.Text.Json.Serialization.Js /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.ToolsItem4 value, + global::tryAGI.OpenAI.ToolsItem5 value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsRealtimeFunctionTool) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeFunctionTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RealtimeFunctionTool, typeInfo); } - else if (value.IsValue2) + else if (value.IsMCPTool) { 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.Value2, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MCPTool, typeInfo); } } } 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 66b40047..74186ee1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -1162,7970 +1162,8582 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::tryAGI.OpenAI.AuditLog? Type284 { get; set; } + public global::tryAGI.OpenAI.AudioTranscription? Type284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActor? Type285 { get; set; } + public global::tryAGI.OpenAI.AudioTranscriptionModel? Type285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorApiKey? Type286 { get; set; } + public global::tryAGI.OpenAI.AuditLog? Type286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorServiceAccount? Type287 { get; set; } + public global::tryAGI.OpenAI.AuditLogActor? Type287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorApiKeyType? Type288 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorApiKey? Type288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorUser? Type289 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorServiceAccount? Type289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorSession? Type290 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorApiKeyType? Type290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorType? Type291 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorUser? Type291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyCreated? Type292 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorSession? Type292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyCreatedData? Type293 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorType? Type293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyDeleted? Type294 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyCreated? Type294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyUpdated? Type295 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyCreatedData? Type295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyUpdatedChangesRequested? Type296 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyDeleted? Type296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificateCreated? Type297 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyUpdated? Type297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificateDeleted? Type298 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyUpdatedChangesRequested? Type298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificateUpdated? Type299 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificateCreated? Type299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificatesActivated? Type300 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificateDeleted? Type300 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type301 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificateUpdated? Type301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificatesActivatedCertificate? Type302 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificatesActivated? Type302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificatesDeactivated? Type303 { get; set; } + public global::System.Collections.Generic.IList? Type303 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type304 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificatesActivatedCertificate? Type304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificatesDeactivatedCertificate? Type305 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificatesDeactivated? Type305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreated? Type306 { get; set; } + public global::System.Collections.Generic.IList? Type306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreatedData? Type307 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificatesDeactivatedCertificate? Type307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionDeleted? Type308 { get; set; } + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreated? Type308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogInviteAccepted? Type309 { get; set; } + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreatedData? Type309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogInviteDeleted? Type310 { get; set; } + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionDeleted? Type310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogInviteSent? Type311 { get; set; } + public global::tryAGI.OpenAI.AuditLogInviteAccepted? Type311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogInviteSentData? Type312 { get; set; } + public global::tryAGI.OpenAI.AuditLogInviteDeleted? Type312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogLoginFailed? Type313 { get; set; } + public global::tryAGI.OpenAI.AuditLogInviteSent? Type313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogLogoutFailed? Type314 { get; set; } + public global::tryAGI.OpenAI.AuditLogInviteSentData? Type314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogOrganizationUpdated? Type315 { get; set; } + public global::tryAGI.OpenAI.AuditLogLoginFailed? Type315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogOrganizationUpdatedChangesRequested? Type316 { get; set; } + public global::tryAGI.OpenAI.AuditLogLogoutFailed? Type316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProject? Type317 { get; set; } + public global::tryAGI.OpenAI.AuditLogOrganizationUpdated? Type317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectArchived? Type318 { get; set; } + public global::tryAGI.OpenAI.AuditLogOrganizationUpdatedChangesRequested? Type318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectCreated? Type319 { get; set; } + public global::tryAGI.OpenAI.AuditLogProject? Type319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectCreatedData? Type320 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectArchived? Type320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectUpdated? Type321 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectCreated? Type321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectUpdatedChangesRequested? Type322 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectCreatedData? Type322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogRateLimitDeleted? Type323 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectUpdated? Type323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogRateLimitUpdated? Type324 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectUpdatedChangesRequested? Type324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogRateLimitUpdatedChangesRequested? Type325 { get; set; } + public global::tryAGI.OpenAI.AuditLogRateLimitDeleted? Type325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountCreated? Type326 { get; set; } + public global::tryAGI.OpenAI.AuditLogRateLimitUpdated? Type326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountCreatedData? Type327 { get; set; } + public global::tryAGI.OpenAI.AuditLogRateLimitUpdatedChangesRequested? Type327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountDeleted? Type328 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountCreated? Type328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountUpdated? Type329 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountCreatedData? Type329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountUpdatedChangesRequested? Type330 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountDeleted? Type330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogEventType? Type331 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountUpdated? Type331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserAdded? Type332 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountUpdatedChangesRequested? Type332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserAddedData? Type333 { get; set; } + public global::tryAGI.OpenAI.AuditLogEventType? Type333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserDeleted? Type334 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserAdded? Type334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserUpdated? Type335 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserAddedData? Type335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserUpdatedChangesRequested? Type336 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserDeleted? Type336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? Type337 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserUpdated? Type337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParamType? Type338 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserUpdatedChangesRequested? Type338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Batch? Type339 { get; set; } + public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? Type339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchErrors? Type340 { get; set; } + public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParamType? Type340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type341 { get; set; } + public global::tryAGI.OpenAI.Batch? Type341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchError? Type342 { get; set; } + public global::tryAGI.OpenAI.BatchErrors? Type342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchObject? Type343 { get; set; } + public global::System.Collections.Generic.IList? Type343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestCounts? Type344 { get; set; } + public global::tryAGI.OpenAI.BatchError? Type344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchStatus? Type345 { get; set; } + public global::tryAGI.OpenAI.BatchObject? Type345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchFileExpirationAfter? Type346 { get; set; } + public global::tryAGI.OpenAI.BatchRequestCounts? Type346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchFileExpirationAfterAnchor? Type347 { get; set; } + public global::tryAGI.OpenAI.BatchStatus? Type347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestInput? Type348 { get; set; } + public global::tryAGI.OpenAI.BatchFileExpirationAfter? Type348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestInputMethod? Type349 { get; set; } + public global::tryAGI.OpenAI.BatchFileExpirationAfterAnchor? Type349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestOutput? Type350 { get; set; } + public global::tryAGI.OpenAI.BatchRequestInput? Type350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestOutputError? Type351 { get; set; } + public global::tryAGI.OpenAI.BatchRequestInputMethod? Type351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestOutputResponse? Type352 { get; set; } + public global::tryAGI.OpenAI.BatchRequestOutput? Type352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Certificate? Type353 { get; set; } + public global::tryAGI.OpenAI.BatchRequestOutputError? Type353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CertificateCertificateDetails? Type354 { get; set; } + public global::tryAGI.OpenAI.BatchRequestOutputResponse? Type354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CertificateObject? Type355 { get; set; } + public global::tryAGI.OpenAI.Certificate? Type355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionAllowedTools? Type356 { get; set; } + public global::tryAGI.OpenAI.CertificateCertificateDetails? Type356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionAllowedToolsMode? Type357 { get; set; } + public global::tryAGI.OpenAI.CertificateObject? Type357 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type358 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionAllowedTools? Type358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice? Type359 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionAllowedToolsMode? Type359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoiceType? Type360 { get; set; } + public global::System.Collections.Generic.IList? Type360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionDeleted? Type361 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice? Type361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionDeletedObject? Type362 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoiceType? Type362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionFunctionCallOption? Type363 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionDeleted? Type363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionFunctions? Type364 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionDeletedObject? Type364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionList? Type365 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionFunctionCallOption? Type365 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type366 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionFunctions? Type366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponse? Type367 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionList? Type367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type368 { get; set; } + public global::System.Collections.Generic.IList? Type368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type369 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponse? Type369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type370 { get; set; } + public global::System.Collections.Generic.IList? Type370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs? Type371 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type371 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type372 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type373 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs? Type373 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type374 { get; set; } + public global::System.Collections.Generic.IList? Type374 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type375 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type376 { get; set; } + public global::System.Collections.Generic.IList? Type376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessage? Type377 { get; set; } + public global::System.Collections.Generic.IList? Type377 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type378 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type379 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessage? Type379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type380 { get; set; } + public global::System.Collections.Generic.IList? Type380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type381 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio? Type382 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type383 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type384 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio? Type384 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type385 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem? Type386 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCall? Type387 { get; set; } + public global::System.Collections.Generic.IList? Type387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction? Type388 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem? Type388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallType? Type389 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCall? Type389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? Type390 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction? Type390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallCustom? Type391 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallType? Type391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallType? Type392 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? Type392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator? Type393 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallCustom? Type393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type394 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallType? Type394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTier? Type395 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator? Type395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsage? Type396 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type397 { get; set; } + public global::tryAGI.OpenAI.ServiceTier? Type397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type398 { get; set; } + public global::tryAGI.OpenAI.CompletionUsage? Type398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionListObject? Type399 { get; set; } + public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageList? Type400 { get; set; } + public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type400 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type401 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionListObject? Type401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type402 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageList? Type402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageListDataItem? Type403 { get; set; } + public global::System.Collections.Generic.IList>? Type403 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type404 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type405 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItem? Type405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Type406 { get; set; } + public global::System.Collections.Generic.IList>? Type406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type407 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Type408 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Type408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type409 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type410 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Type410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type411 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageListObject? Type412 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk? Type413 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction? Type414 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListObject? Type414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType? Type415 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk? Type415 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type416 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction? Type416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModalitie? Type417 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType? Type417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type418 { get; set; } + public global::System.Collections.Generic.IList? Type418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type419 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModalitie? Type419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type420 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? Type421 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom? Type422 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType? Type423 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? Type423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type424 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom? Type424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio? Type425 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType? Type425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type426 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type427 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio? Type427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type428 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type429 { get; set; } + public global::System.Collections.Generic.IList? Type429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type430 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type431 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall? Type432 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type433 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type434 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall? Type434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type435 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type435 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type436 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type437 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type438 { get; set; } + public global::System.Collections.Generic.IList? Type438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type439 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type440 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type441 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type442 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type442 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type443 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type444 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type445 { get; set; } + public global::System.Collections.Generic.IList? Type445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type446 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type447 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type447 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type448 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type449 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type450 { get; set; } + public global::System.Collections.Generic.IList? Type450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type451 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type452 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type453 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type454 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type455 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type456 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator? Type457 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type458 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type459 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator? Type459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type460 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type462 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type463 { get; set; } + public global::System.Collections.Generic.IList? Type463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type464 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRole? Type465 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamOptions? Type466 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type467 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRole? Type467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type468 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamOptions? Type468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type469 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type469 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type470 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTool? Type471 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolType? Type472 { get; set; } + public global::System.Collections.Generic.IList? Type472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type473 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTool? Type473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type474 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolType? Type474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatModel? Type475 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type476 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type477 { get; set; } + public global::tryAGI.OpenAI.ChatModel? Type477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategy? Type478 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type479 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type480 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategy? Type480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyResponse? Type481 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type482 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type483 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyResponse? Type483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type484 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type485 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator? Type486 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Click? Type487 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickButton? Type488 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator? Type488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickType? Type489 { get; set; } + public global::tryAGI.OpenAI.Click? Type489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type490 { get; set; } + public global::tryAGI.OpenAI.ClickButton? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::tryAGI.OpenAI.ClickType? Type491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type492 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type493 { get; set; } + public global::System.Collections.Generic.IList? Type493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type494 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type495 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type496 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type497 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type498 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type499 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTool? Type500 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type501 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolAuto? Type502 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTool? Type502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolAutoType? Type503 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolType? Type504 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolAuto? Type504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type505 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolAutoType? Type505 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type506 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolType? Type506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputsItem? Type507 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator? Type508 { get; set; } + public global::System.Collections.Generic.IList? Type508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsDiscriminator? Type509 { get; set; } + public global::tryAGI.OpenAI.OutputsItem? Type509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type510 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator? Type510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type511 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsDiscriminator? Type511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComparisonFilter? Type512 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComparisonFilterType? Type513 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type514 { get; set; } + public global::tryAGI.OpenAI.ComparisonFilter? Type514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompleteUploadRequest? Type515 { get; set; } + public global::tryAGI.OpenAI.ComparisonFilterType? Type515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilter? Type516 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type516 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type517 { get; set; } + public global::tryAGI.OpenAI.CompleteUploadRequest? Type517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type518 { get; set; } + public global::tryAGI.OpenAI.CompoundFilter? Type518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilterType? Type519 { get; set; } + public global::System.Collections.Generic.IList>? Type519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerAction? Type520 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClick? Type521 { get; set; } + public global::tryAGI.OpenAI.CompoundFilterType? Type521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickType? Type522 { get; set; } + public global::tryAGI.OpenAI.ComputerAction? Type522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Drag? Type523 { get; set; } + public global::tryAGI.OpenAI.DoubleClick? Type523 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type524 { get; set; } + public global::tryAGI.OpenAI.DoubleClickType? Type524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Coordinate? Type525 { get; set; } + public global::tryAGI.OpenAI.Drag? Type525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragType? Type526 { get; set; } + public global::System.Collections.Generic.IList? Type526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPress? Type527 { get; set; } + public global::tryAGI.OpenAI.Coordinate? Type527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressType? Type528 { get; set; } + public global::tryAGI.OpenAI.DragType? Type528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Move? Type529 { get; set; } + public global::tryAGI.OpenAI.KeyPress? Type529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveType? Type530 { get; set; } + public global::tryAGI.OpenAI.KeyPressType? Type530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Screenshot? Type531 { get; set; } + public global::tryAGI.OpenAI.Move? Type531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotType? Type532 { get; set; } + public global::tryAGI.OpenAI.MoveType? Type532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Scroll? Type533 { get; set; } + public global::tryAGI.OpenAI.Screenshot? Type533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollType? Type534 { get; set; } + public global::tryAGI.OpenAI.ScreenshotType? Type534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Type? Type535 { get; set; } + public global::tryAGI.OpenAI.Scroll? Type535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeType1? Type536 { get; set; } + public global::tryAGI.OpenAI.ScrollType? Type536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Wait? Type537 { get; set; } + public global::tryAGI.OpenAI.Type? Type537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitType? Type538 { get; set; } + public global::tryAGI.OpenAI.TypeType1? Type538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type539 { get; set; } + public global::tryAGI.OpenAI.Wait? Type539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type540 { get; set; } + public global::tryAGI.OpenAI.WaitType? Type540 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type541 { get; set; } + public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type542 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotImage? Type543 { get; set; } + public global::System.Collections.Generic.IList? Type543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type544 { get; set; } + public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamStatus? Type545 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotImage? Type545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type546 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContent? Type547 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamStatus? Type547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type548 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall? Type549 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContent? Type549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type550 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallSafetyCheck? Type551 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCall? Type551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallStatus? Type552 { get; set; } + public global::System.Collections.Generic.IList? Type552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallType? Type553 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallSafetyCheck? Type553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutput? Type554 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallStatus? Type554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type555 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallType? Type555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type556 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutput? Type556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type557 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type558 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type559 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolEnvironment? Type560 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type561 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileListResource? Type562 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolEnvironment? Type562 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type563 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileResource? Type564 { get; set; } + public global::tryAGI.OpenAI.ContainerFileListResource? Type564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileResourceObject? Type565 { get; set; } + public global::System.Collections.Generic.IList? Type565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type566 { get; set; } + public global::tryAGI.OpenAI.ContainerFileResource? Type566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerListResource? Type567 { get; set; } + public global::tryAGI.OpenAI.ContainerFileResourceObject? Type567 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type568 { get; set; } + public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResource? Type569 { get; set; } + public global::tryAGI.OpenAI.ContainerListResource? Type569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type570 { get; set; } + public global::System.Collections.Generic.IList? Type570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type571 { get; set; } + public global::tryAGI.OpenAI.ContainerResource? Type571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerListResourceObject? Type572 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Content6? Type573 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContent? Type574 { get; set; } + public global::tryAGI.OpenAI.ContainerListResourceObject? Type574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContent? Type575 { get; set; } + public global::tryAGI.OpenAI.Content6? Type575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentType? Type576 { get; set; } + public global::tryAGI.OpenAI.InputContent? Type576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContent? Type577 { get; set; } + public global::tryAGI.OpenAI.InputTextContent? Type577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentDetail? Type578 { get; set; } + public global::tryAGI.OpenAI.InputTextContentType? Type578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentType? Type579 { get; set; } + public global::tryAGI.OpenAI.InputImageContent? Type579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContent? Type580 { get; set; } + public global::tryAGI.OpenAI.InputImageContentDetail? Type580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentType? Type581 { get; set; } + public global::tryAGI.OpenAI.InputImageContentType? Type581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudio? Type582 { get; set; } + public global::tryAGI.OpenAI.InputFileContent? Type582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioInputAudio1? Type583 { get; set; } + public global::tryAGI.OpenAI.InputFileContentType? Type583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type584 { get; set; } + public global::tryAGI.OpenAI.InputAudio? Type584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioType? Type585 { get; set; } + public global::tryAGI.OpenAI.InputAudioInputAudio1? Type585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentDiscriminator? Type586 { get; set; } + public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContent? Type587 { get; set; } + public global::tryAGI.OpenAI.InputAudioType? Type587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContent? Type588 { get; set; } + public global::tryAGI.OpenAI.InputContentDiscriminator? Type588 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type589 { get; set; } + public global::tryAGI.OpenAI.OutputContent? Type589 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type590 { get; set; } + public global::tryAGI.OpenAI.OutputTextContent? Type590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProb? Type591 { get; set; } + public global::System.Collections.Generic.IList? Type591 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TopLogProb? Type593 { get; set; } + public global::tryAGI.OpenAI.LogProb? Type593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContentType? Type594 { get; set; } + public global::System.Collections.Generic.IList? Type594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContent? Type595 { get; set; } + public global::tryAGI.OpenAI.TopLogProb? Type595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContentType? Type596 { get; set; } + public global::tryAGI.OpenAI.OutputTextContentType? Type596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContentDiscriminator? Type597 { get; set; } + public global::tryAGI.OpenAI.RefusalContent? Type597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Conversation? Type598 { get; set; } + public global::tryAGI.OpenAI.RefusalContentType? Type598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResource? Type599 { get; set; } + public global::tryAGI.OpenAI.OutputContentDiscriminator? Type599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResourceObject? Type600 { get; set; } + public global::tryAGI.OpenAI.Conversation? Type600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Conversation2? Type601 { get; set; } + public global::tryAGI.OpenAI.ConversationResource? Type601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItem? Type602 { get; set; } + public global::tryAGI.OpenAI.ConversationResourceObject? Type602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Message? Type603 { get; set; } + public global::tryAGI.OpenAI.Conversation2? Type603 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type604 { get; set; } + public global::tryAGI.OpenAI.ConversationItem? Type604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem? Type605 { get; set; } + public global::tryAGI.OpenAI.Message? Type605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContent2? Type606 { get; set; } + public global::System.Collections.Generic.IList? Type606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContent2Type? Type607 { get; set; } + public global::tryAGI.OpenAI.ContentItem? Type607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContent2? Type608 { get; set; } + public global::tryAGI.OpenAI.InputTextContent2? Type608 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type609 { get; set; } + public global::tryAGI.OpenAI.InputTextContent2Type? Type609 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type610 { get; set; } + public global::tryAGI.OpenAI.OutputTextContent2? Type610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProb2? Type611 { get; set; } + public global::System.Collections.Generic.IList? Type611 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type612 { get; set; } + public global::System.Collections.Generic.IList? Type612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TopLogProb2? Type613 { get; set; } + public global::tryAGI.OpenAI.LogProb2? Type613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContent2Type? Type614 { get; set; } + public global::System.Collections.Generic.IList? Type614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContent? Type615 { get; set; } + public global::tryAGI.OpenAI.TopLogProb2? Type615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContentType? Type616 { get; set; } + public global::tryAGI.OpenAI.OutputTextContent2Type? Type616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContent? Type617 { get; set; } + public global::tryAGI.OpenAI.TextContent? Type617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContentType? Type618 { get; set; } + public global::tryAGI.OpenAI.TextContentType? Type618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContent2? Type619 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContent? Type619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContent2Type? Type620 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContentType? Type620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContent2? Type621 { get; set; } + public global::tryAGI.OpenAI.RefusalContent2? Type621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContent2Detail? Type622 { get; set; } + public global::tryAGI.OpenAI.RefusalContent2Type? Type622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContent2Type? Type623 { get; set; } + public global::tryAGI.OpenAI.InputImageContent2? Type623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContent2? Type624 { get; set; } + public global::tryAGI.OpenAI.InputImageContent2Detail? Type624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContent2Type? Type625 { get; set; } + public global::tryAGI.OpenAI.InputImageContent2Type? Type625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type626 { get; set; } + public global::tryAGI.OpenAI.InputFileContent2? Type626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRole? Type627 { get; set; } + public global::tryAGI.OpenAI.InputFileContent2Type? Type627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStatus? Type628 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageType? Type629 { get; set; } + public global::tryAGI.OpenAI.MessageRole? Type629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResource? Type630 { get; set; } + public global::tryAGI.OpenAI.MessageStatus? Type630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall? Type631 { get; set; } + public global::tryAGI.OpenAI.MessageType? Type631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallStatus? Type632 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResource? Type632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallType? Type633 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCall? Type633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type634 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallStatus? Type634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type635 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallType? Type635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutput? Type636 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type637 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type638 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutput? Type638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type639 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall? Type640 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type640 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type641 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallResult? Type642 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCall? Type642 { get; set; } /// /// /// - public float? Type643 { get; set; } + public global::System.Collections.Generic.IList? Type643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type644 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallResult? Type644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallType? Type645 { get; set; } + public float? Type645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall? Type646 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallAction? Type647 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallType? Type647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearch? Type648 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCall? Type648 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type649 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallAction? Type649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type650 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearch? Type650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type651 { get; set; } + public global::System.Collections.Generic.IList? Type651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchType? Type652 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type653 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type654 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchType? Type654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFind? Type655 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFindType? Type656 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type657 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFind? Type657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type658 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFindType? Type658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallType? Type659 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall? Type660 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type661 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallType? Type661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallType? Type662 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCall? Type662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItem? Type663 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type664 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallType? Type664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemContentItem? Type665 { get; set; } + public global::tryAGI.OpenAI.ReasoningItem? Type665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemContentItemType? Type666 { get; set; } + public global::System.Collections.Generic.IList? Type666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemStatus? Type667 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemContentItem? Type667 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type668 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemContentItemType? Type668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemSummaryItem? Type669 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemStatus? Type669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemSummaryItemType? Type670 { get; set; } + public global::System.Collections.Generic.IList? Type670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemType? Type671 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemSummaryItem? Type671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall? Type672 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemSummaryItemType? Type672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecAction? Type673 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemType? Type673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecActionType? Type674 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCall? Type674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type675 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecAction? Type675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallType? Type676 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecActionType? Type676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type677 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus? Type678 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallType? Type678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type679 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListTools? Type680 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus? Type680 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type681 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsTool? Type682 { get; set; } + public global::tryAGI.OpenAI.MCPListTools? Type682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsType? Type683 { get; set; } + public global::System.Collections.Generic.IList? Type683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest? Type684 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsTool? Type684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequestType? Type685 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsType? Type685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type686 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequest? Type686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type687 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequestType? Type687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCall? Type688 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallType? Type689 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCall? Type690 { get; set; } + public global::tryAGI.OpenAI.MCPToolCall? Type690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallType? Type691 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallType? Type691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutput? Type692 { get; set; } + public global::tryAGI.OpenAI.CustomToolCall? Type692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputType? Type693 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallType? Type693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemDiscriminator? Type694 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutput? Type694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemList? Type695 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputType? Type695 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type696 { get; set; } + public global::tryAGI.OpenAI.ConversationItemDiscriminator? Type696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemListObject? Type697 { get; set; } + public global::tryAGI.OpenAI.ConversationItemList? Type697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationParam? Type698 { get; set; } + public global::System.Collections.Generic.IList? Type698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResult? Type699 { get; set; } + public global::tryAGI.OpenAI.ConversationItemListObject? Type699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultAmount? Type700 { get; set; } + public global::tryAGI.OpenAI.ConversationParam? Type700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultObject? Type701 { get; set; } + public global::tryAGI.OpenAI.CostsResult? Type701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequest? Type702 { get; set; } + public global::tryAGI.OpenAI.CostsResultAmount? Type702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type703 { get; set; } + public global::tryAGI.OpenAI.CostsResultObject? Type703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffort? Type704 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequest? Type704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResources? Type705 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type706 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffort? Type706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type707 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResources? Type707 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type708 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type709 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? Type710 { get; set; } + public global::System.Collections.Generic.IList? Type710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type711 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type712 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? Type712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type713 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type714 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type715 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? Type716 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type717 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModelResponseProperties? Type718 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? Type718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelResponseProperties? Type719 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type720 { get; set; } + public global::tryAGI.OpenAI.CreateModelResponseProperties? Type720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type721 { get; set; } + public global::tryAGI.OpenAI.ModelResponseProperties? Type721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type722 { get; set; } + public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type723 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsShared? Type724 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type725 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type726 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsShared? Type726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type727 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type727 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type728 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type728 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type729 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type729 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type730 { get; set; } + public global::System.Collections.Generic.IList? Type730 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type731 { get; set; } + public global::System.Collections.Generic.Dictionary? Type731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseModalitie? Type732 { get; set; } + public global::System.Collections.Generic.IList? Type732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsShared? Type733 { get; set; } + public global::System.Collections.Generic.IList? Type733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContent? Type734 { get; set; } + public global::tryAGI.OpenAI.ResponseModalitie? Type734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContentType? Type735 { get; set; } + public global::tryAGI.OpenAI.ModelIdsShared? Type735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator? Type736 { get; set; } + public global::tryAGI.OpenAI.PredictionContent? Type736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type737 { get; set; } + public global::tryAGI.OpenAI.PredictionContentType? Type737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StopConfiguration? Type738 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator? Type738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type739 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem? Type740 { get; set; } + public global::tryAGI.OpenAI.StopConfiguration? Type740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletions? Type741 { get; set; } + public global::System.Collections.Generic.IList? Type741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type742 { get; set; } + public global::tryAGI.OpenAI.ToolsItem? Type742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format2? Type743 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletions? Type743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant1? Type744 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant1Type? Type745 { get; set; } + public global::tryAGI.OpenAI.Format2? Type745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2? Type746 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant1? Type746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2Grammar? Type747 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant1Type? Type747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2GrammarSyntax? Type748 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2? Type748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2Type? Type749 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2Grammar? Type749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatDiscriminator? Type750 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2GrammarSyntax? Type750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type751 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2Type? Type751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ToolDiscriminator? Type752 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatDiscriminator? Type752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Verbosity? Type753 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type754 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ToolDiscriminator? Type754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSize? Type755 { get; set; } + public global::tryAGI.OpenAI.Verbosity? Type755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type756 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocation? Type757 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSize? Type757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type758 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type759 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocation? Type759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type760 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type761 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type762 { get; set; } + public global::System.Collections.Generic.IList? Type762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type763 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type764 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionRequest? Type765 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type766 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type767 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionRequest? Type767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type768 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type768 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type769 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type769 { get; set; } /// /// /// - public long? Type770 { get; set; } + public global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponse? Type771 { get; set; } + public global::System.Collections.Generic.IList>? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public long? Type772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type773 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponse? Type773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type774 { get; set; } + public global::System.Collections.Generic.IList? Type774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs? Type775 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type775 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type776 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type776 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type777 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs? Type777 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type778 { get; set; } + public global::System.Collections.Generic.IList? Type778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type779 { get; set; } + public global::System.Collections.Generic.IList>? Type779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBody? Type780 { get; set; } + public global::System.Collections.Generic.Dictionary? Type780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type781 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type782 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBody? Type782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerFileBody? Type783 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationRequest? Type784 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type784 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type785 { get; set; } + public global::tryAGI.OpenAI.CreateContainerFileBody? Type785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItem? Type786 { get; set; } + public global::tryAGI.OpenAI.CreateConversationRequest? Type786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessage? Type787 { get; set; } + public global::System.Collections.Generic.IList? Type787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type788 { get; set; } + public global::tryAGI.OpenAI.InputItem? Type788 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type789 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessage? Type789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageRole? Type790 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageType? Type791 { get; set; } + public global::System.Collections.Generic.IList? Type791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Item? Type792 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageRole? Type792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessage? Type793 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageType? Type793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageRole? Type794 { get; set; } + public global::tryAGI.OpenAI.Item? Type794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageStatus? Type795 { get; set; } + public global::tryAGI.OpenAI.InputMessage? Type795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageType? Type796 { get; set; } + public global::tryAGI.OpenAI.InputMessageRole? Type796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessage? Type797 { get; set; } + public global::tryAGI.OpenAI.InputMessageStatus? Type797 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type798 { get; set; } + public global::tryAGI.OpenAI.InputMessageType? Type798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageRole? Type799 { get; set; } + public global::tryAGI.OpenAI.OutputMessage? Type799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageStatus? Type800 { get; set; } + public global::System.Collections.Generic.IList? Type800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageType? Type801 { get; set; } + public global::tryAGI.OpenAI.OutputMessageRole? Type801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type802 { get; set; } + public global::tryAGI.OpenAI.OutputMessageStatus? Type802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamStatus? Type803 { get; set; } + public global::tryAGI.OpenAI.OutputMessageType? Type803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type804 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponse? Type805 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamStatus? Type805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseType? Type806 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemDiscriminator? Type807 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponse? Type807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParam? Type808 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseType? Type808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParamType? Type809 { get; set; } + public global::tryAGI.OpenAI.ItemDiscriminator? Type809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItemDiscriminator? Type810 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParam? Type810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type811 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParamType? Type811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type812 { get; set; } + public global::tryAGI.OpenAI.InputItemDiscriminator? Type812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type813 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type814 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type815 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type815 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type816 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Embedding? Type817 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type817 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type818 { get; set; } + public global::System.Collections.Generic.IList? Type818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmbeddingObject? Type819 { get; set; } + public global::tryAGI.OpenAI.Embedding? Type819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type820 { get; set; } + public global::System.Collections.Generic.IList? Type820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type821 { get; set; } + public global::tryAGI.OpenAI.EmbeddingObject? Type821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type822 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessages? Type823 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? Type824 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type824 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type825 { get; set; } + public global::tryAGI.OpenAI.InputMessages? Type825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type826 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? Type826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItem? Type827 { get; set; } + public global::System.Collections.Generic.IList>? Type827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type828 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentVariant3? Type829 { get; set; } + public global::tryAGI.OpenAI.EvalItem? Type829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentVariant3Type? Type830 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentVariant4? Type831 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentVariant3? Type831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentVariant4Type? Type832 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentVariant3Type? Type832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemRole? Type833 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentVariant4? Type833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemType? Type834 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentVariant4Type? Type834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1Type? Type835 { get; set; } + public global::tryAGI.OpenAI.EvalItemRole? Type835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? Type836 { get; set; } + public global::tryAGI.OpenAI.EvalItemType? Type836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2Type? Type837 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1Type? Type837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator? Type838 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? Type838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type839 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2Type? Type839 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type840 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator? Type840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Source? Type841 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type842 { get; set; } + public global::System.Collections.Generic.IList? Type842 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type843 { get; set; } + public global::tryAGI.OpenAI.Source? Type843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type844 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type845 { get; set; } + public global::System.Collections.Generic.IList? Type845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type846 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type847 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type848 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type849 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator? Type850 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type851 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type852 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator? Type852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type853 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalItem? Type854 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalItemVariant1? Type855 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type856 { get; set; } + public global::tryAGI.OpenAI.CreateEvalItem? Type856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Source2? Type857 { get; set; } + public global::tryAGI.OpenAI.CreateEvalItemVariant1? Type857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator? Type858 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type859 { get; set; } + public global::tryAGI.OpenAI.Source2? Type859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type860 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator? Type860 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type861 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type862 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type863 { get; set; } + public global::System.Collections.Generic.IList? Type863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type864 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRequest? Type865 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig? Type866 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type867 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequest? Type867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type868 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig? Type868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator? Type869 { get; set; } + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type869 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type870 { get; set; } + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TestingCriteriaItem? Type871 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator? Type871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderStringCheck? Type872 { get; set; } + public global::System.Collections.Generic.IList? Type872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheck? Type873 { get; set; } + public global::tryAGI.OpenAI.TestingCriteriaItem? Type873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckOperation? Type874 { get; set; } + public global::tryAGI.OpenAI.EvalGraderStringCheck? Type874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckType? Type875 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheck? Type875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type876 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckOperation? Type876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarity? Type877 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckType? Type877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type878 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityType? Type879 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarity? Type879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type880 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPython? Type881 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityType? Type881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPython? Type882 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPythonType? Type883 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPython? Type883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type884 { get; set; } + public global::tryAGI.OpenAI.GraderPython? Type884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModel? Type885 { get; set; } + public global::tryAGI.OpenAI.GraderPythonType? Type885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModel? Type886 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type886 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type887 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModel? Type887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModelType? Type888 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModel? Type888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type889 { get; set; } + public global::System.Collections.Generic.IList? Type889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator? Type890 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModelType? Type890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type891 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessages2? Type892 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator? Type892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? Type893 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type893 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type894 { get; set; } + public global::tryAGI.OpenAI.InputMessages2? Type894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type895 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? Type895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1TemplateItem? Type896 { get; set; } + public global::System.Collections.Generic.IList>? Type896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1Type? Type897 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? Type898 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1TemplateItem? Type898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2Type? Type899 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1Type? Type899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator? Type900 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? Type900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type901 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2Type? Type901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type902 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator? Type902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type903 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type904 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type905 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator? Type906 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type906 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type907 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Tool? Type908 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator? Type908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionTool? Type909 { get; set; } + public global::System.Collections.Generic.IList? Type909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolType? Type910 { get; set; } + public global::tryAGI.OpenAI.Tool? Type910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchTool? Type911 { get; set; } + public global::tryAGI.OpenAI.FunctionTool? Type911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptions? Type912 { get; set; } + public global::tryAGI.OpenAI.FunctionToolType? Type912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptionsRanker? Type913 { get; set; } + public global::tryAGI.OpenAI.FileSearchTool? Type913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolType? Type914 { get; set; } + public global::tryAGI.OpenAI.RankingOptions? Type914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchTool? Type915 { get; set; } + public global::tryAGI.OpenAI.RankingOptionsRanker? Type915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolFilters? Type916 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolType? Type916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type917 { get; set; } + public global::tryAGI.OpenAI.WebSearchTool? Type917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolType? Type918 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolFilters? Type918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocation? Type919 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationType? Type920 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolType? Type920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPTool? Type921 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocation? Type921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf, global::tryAGI.OpenAI.MCPToolFilter>? Type922 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationType? Type922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolFilter? Type923 { get; set; } + public global::tryAGI.OpenAI.MCPTool? Type923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolConnectorId? Type924 { get; set; } + public global::tryAGI.OpenAI.AnyOf, global::tryAGI.OpenAI.MCPToolFilter>? Type924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type925 { get; set; } + public global::tryAGI.OpenAI.MCPToolFilter? Type925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalEnum? Type926 { get; set; } + public global::tryAGI.OpenAI.MCPToolConnectorId? Type926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalEnum2? Type927 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolType? Type928 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalEnum? Type928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenTool? Type929 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalEnum2? Type929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolBackground? Type930 { get; set; } + public global::tryAGI.OpenAI.MCPToolType? Type930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageInputFidelity? Type931 { get; set; } + public global::tryAGI.OpenAI.ImageGenTool? Type931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type932 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolBackground? Type932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModel? Type933 { get; set; } + public global::tryAGI.OpenAI.ImageInputFidelity? Type933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModeration? Type934 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type935 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModel? Type935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolQuality? Type936 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModeration? Type936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolSize? Type937 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolType? Type938 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolQuality? Type938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellTool? Type939 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolSize? Type939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolType? Type940 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolType? Type940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTool? Type941 { get; set; } + public global::tryAGI.OpenAI.LocalShellTool? Type941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format? Type942 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolType? Type942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolFormatVariant1? Type943 { get; set; } + public global::tryAGI.OpenAI.CustomTool? Type943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolFormatVariant1Type? Type944 { get; set; } + public global::tryAGI.OpenAI.Format? Type944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolFormatVariant2? Type945 { get; set; } + public global::tryAGI.OpenAI.CustomToolFormatVariant1? Type945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolFormatVariant2Syntax? Type946 { get; set; } + public global::tryAGI.OpenAI.CustomToolFormatVariant1Type? Type946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolFormatVariant2Type? Type947 { get; set; } + public global::tryAGI.OpenAI.CustomToolFormatVariant2? Type947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolFormatDiscriminator? Type948 { get; set; } + public global::tryAGI.OpenAI.CustomToolFormatVariant2Syntax? Type948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolType? Type949 { get; set; } + public global::tryAGI.OpenAI.CustomToolFormatVariant2Type? Type949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewTool? Type950 { get; set; } + public global::tryAGI.OpenAI.CustomToolFormatDiscriminator? Type950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolSearchContextSize? Type951 { get; set; } + public global::tryAGI.OpenAI.CustomToolType? Type951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type952 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewTool? Type952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolDiscriminator? Type953 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolSearchContextSize? Type953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Source3? Type954 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSource? Type955 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminator? Type955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSourceType? Type956 { get; set; } + public global::tryAGI.OpenAI.Source3? Type956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator? Type957 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSource? Type957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type958 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSourceType? Type958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRunRequest? Type959 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator? Type959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type960 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFileRequest? Type961 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRunRequest? Type961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileExpirationAfter? Type962 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type963 { get; set; } + public global::tryAGI.OpenAI.CreateFileRequest? Type963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FilePurpose? Type964 { get; set; } + public global::tryAGI.OpenAI.FileExpirationAfter? Type964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type965 { get; set; } + public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type966 { get; set; } + public global::tryAGI.OpenAI.FilePurpose? Type966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type967 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type968 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type969 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type970 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type971 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type972 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type973 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type973 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type974 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type975 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type976 { get; set; } + public global::System.Collections.Generic.IList? Type976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type977 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethod? Type978 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOMethod? Type979 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type980 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethod? Type980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type981 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOMethod? Type981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type982 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type983 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type984 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type985 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type986 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type987 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type988 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type989 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type990 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMulti? Type991 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type992 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModel? Type993 { get; set; } + public global::tryAGI.OpenAI.GraderMulti? Type993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModelType? Type994 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMultiType? Type995 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModel? Type995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type996 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModelType? Type996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type997 { get; set; } + public global::tryAGI.OpenAI.GraderMultiType? Type997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type998 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type999 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type1000 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type1000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1001 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type1002 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type1002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1003 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type1004 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type1004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1005 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type1006 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type1006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1007 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type1008 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type1008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type1009 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type1010 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type1010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type1011 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type1011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1012 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type1012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type1013 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type1013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1014 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type1015 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type1015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1016 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type1017 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type1017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethodType? Type1018 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1019 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type1019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type1020 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethodType? Type1020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequest? Type1021 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type1022 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type1022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type1023 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequest? Type1023 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1024 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type1024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1025 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type1025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type1026 { get; set; } + public global::System.Collections.Generic.IList? Type1026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type1027 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type1028 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type1028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type1029 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type1029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type1030 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type1030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequest? Type1031 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type1031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestBackground? Type1032 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type1032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1033 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequest? Type1033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestModel? Type1034 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestBackground? Type1034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestModeration? Type1035 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type1036 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestModel? Type1036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestQuality? Type1037 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestModeration? Type1037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type1038 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type1038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestSize? Type1039 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestQuality? Type1039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestStyle? Type1040 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type1040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequest? Type1041 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestSize? Type1041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1042 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestStyle? Type1042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type1043 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequest? Type1043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type1044 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type1045 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type1045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequest? Type1046 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type1046 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1047 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type1047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestAttachment? Type1048 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequest? Type1048 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1049 { get; set; } + public global::System.Collections.Generic.IList? Type1049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem2? Type1050 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestAttachment? Type1050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator? Type1051 { get; set; } + public global::System.Collections.Generic.IList? Type1051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type1052 { get; set; } + public global::tryAGI.OpenAI.ToolsItem2? Type1052 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1053 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator? Type1053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentVariant2Item? Type1054 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type1054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type1055 { get; set; } + public global::System.Collections.Generic.IList? Type1055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1056 { get; set; } + public global::tryAGI.OpenAI.ContentVariant2Item? Type1056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator? Type1057 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type1057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestRole? Type1058 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequest? Type1059 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator? Type1059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList>? Type1060 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestRole? Type1060 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1061 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequest? Type1061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputVariant3Item? Type1062 { get; set; } + public global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList>? Type1062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationImageURLInput? Type1063 { get; set; } + public global::System.Collections.Generic.IList? Type1063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationImageURLInputImageUrl? Type1064 { get; set; } + public global::tryAGI.OpenAI.InputVariant3Item? Type1064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationImageURLInputType? Type1065 { get; set; } + public global::tryAGI.OpenAI.ModerationImageURLInput? Type1065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationTextInput? Type1066 { get; set; } + public global::tryAGI.OpenAI.ModerationImageURLInputImageUrl? Type1066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationTextInputType? Type1067 { get; set; } + public global::tryAGI.OpenAI.ModerationImageURLInputType? Type1067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator? Type1068 { get; set; } + public global::tryAGI.OpenAI.ModerationTextInput? Type1068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1069 { get; set; } + public global::tryAGI.OpenAI.ModerationTextInputType? Type1069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestModel? Type1070 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator? Type1070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponse? Type1071 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1071 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1072 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestModel? Type1072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResult? Type1073 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponse? Type1073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type1074 { get; set; } + public global::System.Collections.Generic.IList? Type1074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type1075 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResult? Type1075 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1076 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type1076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type1077 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type1077 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1078 { get; set; } + public global::System.Collections.Generic.IList? Type1078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type1079 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type1079 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1080 { get; set; } + public global::System.Collections.Generic.IList? Type1080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type1081 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type1081 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1082 { get; set; } + public global::System.Collections.Generic.IList? Type1082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type1083 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type1083 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1084 { get; set; } + public global::System.Collections.Generic.IList? Type1084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type1085 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type1085 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1086 { get; set; } + public global::System.Collections.Generic.IList? Type1086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type1087 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type1087 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1088 { get; set; } + public global::System.Collections.Generic.IList? Type1088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type1089 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type1089 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1090 { get; set; } + public global::System.Collections.Generic.IList? Type1090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type1091 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type1091 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1092 { get; set; } + public global::System.Collections.Generic.IList? Type1092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type1093 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type1093 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1094 { get; set; } + public global::System.Collections.Generic.IList? Type1094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type1095 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type1095 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1096 { get; set; } + public global::System.Collections.Generic.IList? Type1096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type1097 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type1097 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1098 { get; set; } + public global::System.Collections.Generic.IList? Type1098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type1099 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type1099 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1100 { get; set; } + public global::System.Collections.Generic.IList? Type1100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type1101 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type1101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type1102 { get; set; } + public global::System.Collections.Generic.IList? Type1102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponse? Type1103 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type1103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseProperties? Type1104 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type1104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponses? Type1105 { get; set; } + public global::tryAGI.OpenAI.CreateResponse? Type1105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1106 { get; set; } + public global::tryAGI.OpenAI.ResponseProperties? Type1106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Prompt2? Type1107 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponses? Type1107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1108 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Reasoning? Type1109 { get; set; } + public global::tryAGI.OpenAI.Prompt2? Type1109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningGenerateSummary? Type1110 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummary? Type1111 { get; set; } + public global::tryAGI.OpenAI.Reasoning? Type1111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsePropertiesText? Type1112 { get; set; } + public global::tryAGI.OpenAI.ReasoningGenerateSummary? Type1112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoice3? Type1113 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummary? Type1113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceOptions? Type1114 { get; set; } + public global::tryAGI.OpenAI.ResponsePropertiesText? Type1114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowed? Type1115 { get; set; } + public global::tryAGI.OpenAI.ToolChoice5? Type1115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type1116 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceOptions? Type1116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type1117 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowed? Type1117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypes? Type1118 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type1118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypesType? Type1119 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type1119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunction? Type1120 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypes? Type1120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type1121 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypesType? Type1121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCP? Type1122 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunction? Type1122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCPType? Type1123 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type1123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustom? Type1124 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCP? Type1124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustomType? Type1125 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCPType? Type1125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsePropertiesToolChoiceDiscriminator? Type1126 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustom? Type1126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsePropertiesTruncation? Type1127 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustomType? Type1127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponseVariant3? Type1128 { get; set; } + public global::tryAGI.OpenAI.ResponsePropertiesToolChoiceDiscriminator? Type1128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1129 { get; set; } + public global::tryAGI.OpenAI.ResponsePropertiesTruncation? Type1129 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1130 { get; set; } + public global::tryAGI.OpenAI.CreateResponseVariant3? Type1130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Includable? Type1131 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type1132 { get; set; } + public global::System.Collections.Generic.IList? Type1132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamOptions? Type1133 { get; set; } + public global::tryAGI.OpenAI.Includable? Type1133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunRequest? Type1134 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type1134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1135 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamOptions? Type1135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunRequestWithoutStream? Type1136 { get; set; } + public global::tryAGI.OpenAI.CreateRunRequest? Type1136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequest? Type1137 { get; set; } + public global::System.Collections.Generic.IList? Type1137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1138 { get; set; } + public global::tryAGI.OpenAI.CreateRunRequestWithoutStream? Type1138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type1139 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequest? Type1139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type1140 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type1141 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type1141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type1142 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type1142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type1143 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type1143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type1144 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type1144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type1145 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type1145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type1146 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type1146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type1147 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type1147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type1148 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type1148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type1149 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type1149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1150 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type1150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type1151 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type1151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequest? Type1152 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResources? Type1153 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type1153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type1154 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequest? Type1154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type1155 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResources? Type1155 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1156 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type1156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type1157 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type1157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy? Type1158 { get; set; } + public global::System.Collections.Generic.IList? Type1158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type1159 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type1159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type1160 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy? Type1160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type1161 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type1161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type1162 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type1162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type1163 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type1163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? Type1164 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type1164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type1165 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type1165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type1166 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? Type1166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type1167 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type1167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream? Type1168 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type1168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1169 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type1169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel? Type1170 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream? Type1170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources? Type1171 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter? Type1172 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel? Type1172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch? Type1173 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources? Type1173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type1174 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter? Type1174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type1175 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch? Type1175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type1176 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type1176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfig? Type1177 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type1177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfigType? Type1178 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type1178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1179 { get; set; } + public global::tryAGI.OpenAI.VadConfig? Type1179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionInclude? Type1180 { get; set; } + public global::tryAGI.OpenAI.VadConfigType? Type1180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1181 { get; set; } + public global::System.Collections.Generic.IList? Type1181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type1182 { get; set; } + public global::tryAGI.OpenAI.TranscriptionInclude? Type1182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1183 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type1184 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type1184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? 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.CreateTranscriptionRequestTimestampGranularitie? Type1186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type1187 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type1187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage? Type1188 { get; set; } + public global::System.Collections.Generic.IList? Type1188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type1189 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type1189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type1190 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage? Type1190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type1191 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type1191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type1192 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type1192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type1193 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type1193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator? Type1194 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type1194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type1195 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type1195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type1196 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator? Type1196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1197 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type1197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type1198 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type1198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type1199 { get; set; } + public global::System.Collections.Generic.IList? Type1199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type1200 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type1200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1201 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type1201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type1202 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type1202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type1203 { get; set; } + public global::System.Collections.Generic.IList? Type1203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type1204 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type1204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type1205 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type1205 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1206 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type1206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionSegment? Type1207 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type1207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1208 { get; set; } + public global::System.Collections.Generic.IList? Type1208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionWord? Type1209 { get; set; } + public global::tryAGI.OpenAI.TranscriptionSegment? Type1209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequest? Type1210 { get; set; } + public global::System.Collections.Generic.IList? Type1210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1211 { get; set; } + public global::tryAGI.OpenAI.TranscriptionWord? Type1211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type1212 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequest? Type1212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type1213 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type1214 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type1214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type1215 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type1215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequest? Type1216 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type1216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type1217 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type1217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type1218 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequest? Type1218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type1219 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type1219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type1220 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type1220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type1221 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type1221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type1222 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type1222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponse? Type1223 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type1223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type1224 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type1224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponse? Type1225 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponse? Type1225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type1226 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type1226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponse? Type1227 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponse? Type1227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponseObject? Type1228 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type1228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type1229 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponse? Type1229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type1230 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponseObject? Type1230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponse? Type1231 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type1231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type1232 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type1232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteModelResponse? Type1233 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponse? Type1233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponse? Type1234 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type1234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type1235 { get; set; } + public global::tryAGI.OpenAI.DeleteModelResponse? Type1235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type1236 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponse? Type1236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type1237 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type1237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type1238 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type1238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type1239 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type1239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversation? Type1240 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type1240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResource? Type1241 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type1241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type1242 { get; set; } + public global::tryAGI.OpenAI.DeletedConversation? Type1242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEvent? Type1243 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResource? Type1243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventData? Type1244 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type1244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventEvent? Type1245 { get; set; } + public global::tryAGI.OpenAI.DoneEvent? Type1245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorResponse? Type1246 { get; set; } + public global::tryAGI.OpenAI.DoneEventData? Type1246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Eval? Type1247 { get; set; } + public global::tryAGI.OpenAI.DoneEventEvent? Type1247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalDataSourceConfig? Type1248 { get; set; } + public global::tryAGI.OpenAI.ErrorResponse? Type1248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type1249 { get; set; } + public global::tryAGI.OpenAI.Eval? Type1249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type1250 { get; set; } + public global::tryAGI.OpenAI.EvalDataSourceConfig? Type1250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type1251 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type1251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type1252 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type1252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type1253 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type1253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type1254 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type1254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator? Type1255 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type1255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalObject? Type1256 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type1256 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1257 { get; set; } + public global::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator? Type1257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1258 { get; set; } + public global::tryAGI.OpenAI.EvalObject? Type1258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderLabelModel? Type1259 { get; set; } + public global::System.Collections.Generic.IList>? Type1259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalApiError? Type1260 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalList? Type1261 { get; set; } + public global::tryAGI.OpenAI.EvalGraderLabelModel? Type1261 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1262 { get; set; } + public global::tryAGI.OpenAI.EvalApiError? Type1262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalListObject? Type1263 { get; set; } + public global::tryAGI.OpenAI.EvalList? Type1263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRun? Type1264 { get; set; } + public global::System.Collections.Generic.IList? Type1264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunDataSource? Type1265 { get; set; } + public global::tryAGI.OpenAI.EvalListObject? Type1265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunDataSourceDiscriminator? Type1266 { get; set; } + public global::tryAGI.OpenAI.EvalRun? Type1266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunObject? Type1267 { get; set; } + public global::tryAGI.OpenAI.EvalRunDataSource? Type1267 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1268 { get; set; } + public global::tryAGI.OpenAI.EvalRunDataSourceDiscriminator? Type1268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type1269 { get; set; } + public global::tryAGI.OpenAI.EvalRunObject? Type1269 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1270 { get; set; } + public global::System.Collections.Generic.IList? Type1270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type1271 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type1271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunResultCounts? Type1272 { get; set; } + public global::System.Collections.Generic.IList? Type1272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunList? Type1273 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type1273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1274 { get; set; } + public global::tryAGI.OpenAI.EvalRunResultCounts? Type1274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunListObject? Type1275 { get; set; } + public global::tryAGI.OpenAI.EvalRunList? Type1275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItem? Type1276 { get; set; } + public global::System.Collections.Generic.IList? Type1276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type1277 { get; set; } + public global::tryAGI.OpenAI.EvalRunListObject? Type1277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type1278 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItem? Type1278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1279 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type1279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type1280 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type1280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1281 { get; set; } + public global::System.Collections.Generic.IList? Type1281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type1282 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type1282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type1283 { get; set; } + public global::System.Collections.Generic.IList? Type1283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemList? Type1284 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type1284 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1285 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type1285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type1286 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemList? Type1286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Filters? Type1287 { get; set; } + public global::System.Collections.Generic.IList? Type1287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type1288 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type1288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageVariant1? Type1289 { get; set; } + public global::tryAGI.OpenAI.Filters? Type1289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatRequestInput? Type1290 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type1290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1291 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageVariant1? Type1291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1292 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatRequestInput? Type1292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTunePreferenceRequestInput? Type1293 { get; set; } + public global::System.Collections.Generic.IList>? Type1293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTunePreferenceRequestInputInput? Type1294 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1294 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1295 { get; set; } + public global::tryAGI.OpenAI.FineTunePreferenceRequestInput? Type1295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1296 { get; set; } + public global::tryAGI.OpenAI.FineTunePreferenceRequestInputInput? Type1296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementRequestInput? Type1297 { get; set; } + public global::System.Collections.Generic.IList>? Type1297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1298 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1299 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementRequestInput? Type1299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type1300 { get; set; } + public global::System.Collections.Generic.IList>? Type1300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type1301 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegration? Type1302 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type1302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationType? Type1303 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type1303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type1304 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegration? Type1304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJob? Type1305 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationType? Type1305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobError? Type1306 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type1306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type1307 { get; set; } + public global::tryAGI.OpenAI.FineTuningJob? Type1307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1308 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobError? Type1308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSize? Type1309 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type1309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1310 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type1311 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSize? Type1311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1312 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type1313 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type1313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1314 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.IntegrationsItem? Type1315 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type1315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator? Type1316 { get; set; } + public global::System.Collections.Generic.IList? Type1316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobObject? Type1317 { get; set; } + public global::tryAGI.OpenAI.IntegrationsItem? Type1317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobStatus? Type1318 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator? Type1318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type1319 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobObject? Type1319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type1320 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobStatus? Type1320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type1321 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type1321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEvent? Type1322 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type1322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type1323 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type1323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventObject? Type1324 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEvent? Type1324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventType? Type1325 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type1325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Image2? Type1326 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventObject? Type1326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type1327 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventType? Type1327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type1328 { get; set; } + public global::tryAGI.OpenAI.Image2? Type1328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type1329 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type1329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type1330 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type1330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type1331 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type1331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type1332 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type1332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsage? Type1333 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type1333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1334 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type1334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type1335 { get; set; } + public global::tryAGI.OpenAI.ImagesUsage? Type1335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type1336 { get; set; } + public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type1337 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type1337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type1338 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type1338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type1339 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type1339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type1340 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type1340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEvent? Type1341 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type1341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type1342 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type1342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type1343 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEvent? Type1343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type1344 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type1344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type1345 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type1345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type1346 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type1346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type1347 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type1347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type1348 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type1348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type1349 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type1349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type1350 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type1350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type1351 { get; set; } + public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type1351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type1352 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type1352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type1353 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type1353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type1354 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type1354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type1355 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type1355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEvent? Type1356 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type1356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type1357 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type1357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenUsage? Type1358 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEvent? Type1358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponse? Type1359 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type1359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseBackground? Type1360 { get; set; } + public global::tryAGI.OpenAI.ImageGenUsage? Type1360 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1361 { get; set; } + public global::tryAGI.OpenAI.ImagesResponse? Type1361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1362 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseBackground? Type1362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseQuality? Type1363 { get; set; } + public global::System.Collections.Generic.IList? Type1363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseSize? Type1364 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResource? Type1365 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseQuality? Type1365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1366 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseSize? Type1366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Invite? Type1367 { get; set; } + public global::tryAGI.OpenAI.InputMessageResource? Type1367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteObject? Type1368 { get; set; } + public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1368 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1369 { get; set; } + public global::tryAGI.OpenAI.Invite? Type1369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProject? Type1370 { get; set; } + public global::tryAGI.OpenAI.InviteObject? Type1370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProjectRole? Type1371 { get; set; } + public global::System.Collections.Generic.IList? Type1371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRole? Type1372 { get; set; } + public global::tryAGI.OpenAI.InviteProject? Type1372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteStatus? Type1373 { get; set; } + public global::tryAGI.OpenAI.InviteProjectRole? Type1373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponse? Type1374 { get; set; } + public global::tryAGI.OpenAI.InviteRole? Type1374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1375 { get; set; } + public global::tryAGI.OpenAI.InviteStatus? Type1375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponse? Type1376 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponse? Type1376 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1377 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponseObject? Type1378 { get; set; } + public global::tryAGI.OpenAI.InviteListResponse? Type1378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequest? Type1379 { get; set; } + public global::System.Collections.Generic.IList? Type1379 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1380 { get; set; } + public global::tryAGI.OpenAI.InviteListResponseObject? Type1380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProject? Type1381 { get; set; } + public global::tryAGI.OpenAI.InviteRequest? Type1381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1382 { get; set; } + public global::System.Collections.Generic.IList? Type1382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestRole? Type1383 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProject? Type1383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResource? Type1384 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1385 { get; set; } + public global::tryAGI.OpenAI.InviteRequestRole? Type1385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsResponse? Type1386 { get; set; } + public global::tryAGI.OpenAI.ItemResource? Type1386 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1387 { get; set; } + public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1388 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsResponse? Type1388 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1389 { get; set; } + public global::System.Collections.Generic.IList? Type1389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1390 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponse? Type1391 { get; set; } + public global::System.Collections.Generic.IList? Type1391 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1392 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1393 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponse? Type1393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponse? Type1394 { get; set; } + public global::System.Collections.Generic.IList? Type1394 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1395 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1396 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponse? Type1396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesResponse? Type1397 { get; set; } + public global::System.Collections.Generic.IList? Type1397 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1398 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFile? Type1399 { get; set; } + public global::tryAGI.OpenAI.ListFilesResponse? Type1399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileObject? Type1400 { get; set; } + public global::System.Collections.Generic.IList? Type1400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1401 { get; set; } + public global::tryAGI.OpenAI.OpenAIFile? Type1401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileStatus? Type1402 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileObject? Type1402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1403 { get; set; } + public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1403 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1404 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileStatus? Type1404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1405 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1406 { get; set; } + public global::System.Collections.Generic.IList? Type1406 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1407 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1408 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1409 { get; set; } + public global::System.Collections.Generic.IList? Type1409 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1410 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1411 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesResponse? Type1412 { get; set; } + public global::System.Collections.Generic.IList? Type1412 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1413 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponse? Type1414 { get; set; } + public global::tryAGI.OpenAI.ListMessagesResponse? Type1414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1415 { get; set; } + public global::System.Collections.Generic.IList? Type1415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Model16? Type1416 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponse? Type1416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelObject? Type1417 { get; set; } + public global::System.Collections.Generic.IList? Type1417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponseObject? Type1418 { get; set; } + public global::tryAGI.OpenAI.Model16? Type1418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1419 { get; set; } + public global::tryAGI.OpenAI.ModelObject? Type1419 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1420 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponseObject? Type1420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1421 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsResponse? Type1422 { get; set; } + public global::System.Collections.Generic.IList? Type1422 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1423 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsResponse? Type1424 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsResponse? Type1424 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1425 { get; set; } + public global::System.Collections.Generic.IList? Type1425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1426 { get; set; } + public global::tryAGI.OpenAI.ListRunsResponse? Type1426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1427 { get; set; } + public global::System.Collections.Generic.IList? Type1427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObject? Type1428 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type1429 { get; set; } + public global::System.Collections.Generic.IList? Type1429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type1430 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObject? Type1430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type1431 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type1431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type1432 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type1432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1433 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type1433 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1434 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type1434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObject? Type1435 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type1436 { get; set; } + public global::System.Collections.Generic.IList? Type1436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectObject? Type1437 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObject? Type1437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type1438 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type1438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProbProperties? Type1439 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectObject? Type1439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIds? Type1440 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type1440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1441 { get; set; } + public global::tryAGI.OpenAI.LogProbProperties? Type1441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? Type1442 { get; set; } + public global::tryAGI.OpenAI.ModelIds? Type1442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1443 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1444 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? Type1444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1445 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyMessageRequest? Type1446 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyRunRequest? Type1447 { get; set; } + public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequest? Type1448 { get; set; } + public global::tryAGI.OpenAI.ModifyMessageRequest? Type1448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResources? Type1449 { get; set; } + public global::tryAGI.OpenAI.ModifyRunRequest? Type1449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1450 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequest? Type1450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1451 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResources? Type1451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudio? Type1452 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudioType? Type1453 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItem? Type1454 { get; set; } + public global::tryAGI.OpenAI.NoiseReductionType? Type1454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1455 { get; set; } + public global::tryAGI.OpenAI.OutputAudio? Type1455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Project? Type1456 { get; set; } + public global::tryAGI.OpenAI.OutputAudioType? Type1456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectObject? Type1457 { get; set; } + public global::tryAGI.OpenAI.OutputItem? Type1457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectStatus? Type1458 { get; set; } + public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKey? Type1459 { get; set; } + public global::tryAGI.OpenAI.Project? Type1459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1460 { get; set; } + public global::tryAGI.OpenAI.ProjectObject? Type1460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1461 { get; set; } + public global::tryAGI.OpenAI.ProjectStatus? Type1461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccount? Type1462 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKey? Type1462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1463 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1464 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1465 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccount? Type1465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUser? Type1466 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserObject? Type1467 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserRole? Type1468 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1469 { get; set; } + public global::tryAGI.OpenAI.ProjectUser? Type1469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1470 { get; set; } + public global::tryAGI.OpenAI.ProjectUserObject? Type1470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1471 { get; set; } + public global::tryAGI.OpenAI.ProjectUserRole? Type1471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1472 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1473 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectCreateRequest? Type1474 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponse? Type1475 { get; set; } + public global::System.Collections.Generic.IList? Type1475 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1476 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponseObject? Type1477 { get; set; } + public global::tryAGI.OpenAI.ProjectCreateRequest? Type1477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimit? Type1478 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponse? Type1478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1479 { get; set; } + public global::System.Collections.Generic.IList? Type1479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1480 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponseObject? Type1480 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1481 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimit? Type1481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1482 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1483 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1484 { get; set; } + public global::System.Collections.Generic.IList? Type1484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1485 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1486 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1487 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1488 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1489 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1490 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1491 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1492 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1492 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1493 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1494 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1495 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1496 { get; set; } + public global::System.Collections.Generic.IList? Type1496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserCreateRequestRole? Type1497 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1498 { get; set; } + public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1499 { get; set; } + public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserListResponse? Type1500 { get; set; } + public global::tryAGI.OpenAI.ProjectUserCreateRequestRole? Type1500 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1501 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1502 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequestRole? Type1503 { get; set; } + public global::tryAGI.OpenAI.ProjectUserListResponse? Type1503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1504 { get; set; } + public global::System.Collections.Generic.IList? Type1504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant1? Type1505 { get; set; } + public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant1Type? Type1506 { get; set; } + public global::tryAGI.OpenAI.ProjectUserUpdateRequestRole? Type1506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant2? Type1507 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant2Type? Type1508 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant1? Type1508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant3? Type1509 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant1Type? Type1509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant3Type? Type1510 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant2? Type1510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsDiscriminator? Type1511 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant2Type? Type1511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEvent? Type1512 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant3? Type1512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1513 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsVariant3Type? Type1513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItem? Type1514 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsDiscriminator? Type1514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemObject? Type1515 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemType? Type1516 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItem? Type1516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemStatus? Type1517 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemObject? Type1517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemRole? Type1518 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemType? Type1518 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1519 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemStatus? Type1519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemContentItem? Type1520 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemRole? Type1520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemContentItemType? Type1521 { get; set; } + public global::System.Collections.Generic.IList? Type1521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1522 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemContentItem? Type1522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1523 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemContentItemType? Type1523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1524 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1525 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1526 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1527 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1528 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1529 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1530 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1531 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1532 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1533 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1534 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1535 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1536 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1537 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1538 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1539 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1540 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1541 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1542 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1542 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1543 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1544 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1545 { get; set; } + public global::System.Collections.Generic.IList? Type1545 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1546 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie? Type1547 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat? Type1548 { get; set; } + public global::System.Collections.Generic.IList? Type1548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1549 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1550 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsTool? Type1551 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType? Type1552 { get; set; } + public global::System.Collections.Generic.IList? Type1552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1553 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1554 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1555 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio? Type1556 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInput? Type1557 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat? Type1558 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReduction? Type1559 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType? Type1560 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscription? Type1561 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel? Type1562 { get; set; } + public global::System.Collections.Generic.IList? Type1562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetection? Type1563 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness? Type1564 { get; set; } + public global::System.Collections.Generic.IList? Type1564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType? Type1565 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutput? Type1566 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat? Type1567 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1568 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter? Type1569 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor? Type1570 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncation? Type1570 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1571 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type1571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestIncludeItem? Type1572 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type1572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1573 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type1573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxOutputTokens? Type1574 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1575 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel? Type1576 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1577 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalitie? Type1578 { get; set; } + public global::System.Collections.Generic.IList? Type1578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1579 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem4? Type1580 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1? Type1581 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type? Type1582 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolDiscriminator? Type1583 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1584 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1585 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1586 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncation? Type1587 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type1588 { get; set; } + public global::System.Collections.Generic.IList? Type1588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type1589 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type1590 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestType? Type1591 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1592 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1593 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1594 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1594 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1595 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1596 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1597 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1598 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType? Type1599 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? Type1600 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel? Type1601 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1602 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModel? Type1603 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1604 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1605 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType? Type1606 { get; set; } + public global::System.Collections.Generic.IList? Type1606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1607 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1608 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConnectParams? Type1609 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1610 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1611 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1612 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1613 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1614 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1615 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1616 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1617 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1618 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1618 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1619 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1620 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1621 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1622 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1623 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1624 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1625 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1626 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1626 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1627 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1628 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1629 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1630 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1631 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered? Type1631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1632 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType? Type1632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1633 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1634 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1634 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1635 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1636 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1637 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1638 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1639 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1640 { get; set; } + public global::System.Collections.Generic.IList? Type1640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1641 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1642 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1642 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1643 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1644 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1645 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1646 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1647 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1648 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1649 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1650 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1651 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1652 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Session? Type1653 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestSessionDiscriminator? Type1654 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1655 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1656 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1657 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1658 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1659 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1660 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType? Type1661 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTranscription? Type1662 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1663 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1664 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1664 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1665 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1666 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1667 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1668 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1668 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1669 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1670 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1671 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTool? Type1672 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType? Type1673 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1674 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1675 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1676 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1677 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1678 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudio? Type1679 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInput? Type1680 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction? Type1681 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType? Type1682 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription? Type1683 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel? Type1684 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection? Type1685 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1685 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1686 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseIncludeItem? Type1687 { get; set; } + public global::tryAGI.OpenAI.RealtimeSession? Type1687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1688 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionObject? Type1688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1689 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionVoice? Type1689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1690 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormat? Type1690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1691 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionInputAudioTranscription? Type1691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1692 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTurnDetection? Type1692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1693 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTurnDetectionType? Type1693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1694 { get; set; } + public global::System.Collections.Generic.IList? Type1694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1695 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTool? Type1695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1696 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionToolChoice? Type1696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1697 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1698 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionMaxOutputTokens? Type1698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error2? Type1699 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1700 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1701 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCallErrorDiscriminator? Type1702 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1703 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponse? Type1704 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseObject? Type1705 { get; set; } + public global::System.Collections.Generic.IList? Type1705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1706 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1707 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEvent? Type1708 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeError? Type1709 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeErrorType? Type1710 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeErrorDetails? Type1711 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEvent? Type1711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreated? Type1712 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreatedType? Type1713 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSession? Type1714 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionObject? Type1715 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionVoice? Type1716 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormat? Type1717 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioTranscription? Type1718 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTurnDetection? Type1719 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTurnDetectionType? Type1720 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1720 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1721 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTool? Type1722 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionToolChoice? Type1723 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1724 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionMaxOutputTokens? Type1725 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionUpdated? Type1726 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionUpdatedType? Type1727 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationCreated? Type1728 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationCreatedType? Type1729 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversation? Type1730 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationObject? Type1731 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemCreated? Type1732 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemCreatedType? Type1733 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionCompleted? Type1734 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionCompletedType? Type1735 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionFailed? Type1736 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionFailedType? Type1737 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemTruncated? Type1738 { get; set; } + public global::System.Collections.Generic.IList? Type1738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemTruncatedType? Type1739 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDeleted? Type1740 { get; set; } + public global::System.Collections.Generic.IList>? Type1740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDeletedType? Type1741 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommitted? Type1742 { get; set; } + public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommittedType? Type1743 { get; set; } + public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCleared? Type1744 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferClearedType? Type1745 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStarted? Type1746 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStartedType? Type1747 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStopped? Type1748 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStoppedType? Type1749 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreated? Type1750 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreatedType? Type1751 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection? Type1751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseDone? Type1752 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness? Type1752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseDoneType? Type1753 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType? Type1753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputItemAdded? Type1754 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputItemAddedType? Type1755 { get; set; } + public global::System.Collections.Generic.IList? Type1755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputItemDone? Type1756 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputItemDoneType? Type1757 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseContentPartAdded? Type1758 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseContentPartAddedType? Type1759 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeContentPart? Type1760 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeContentPartType? Type1761 { get; set; } + public global::System.Collections.Generic.IList? Type1761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseContentPartDone? Type1762 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseContentPartDoneType? Type1763 { get; set; } + public global::System.Collections.Generic.IList? Type1763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseTextDelta? Type1764 { get; set; } + public global::tryAGI.OpenAI.ToolsItem5? Type1764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseTextDeltaType? Type1765 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAToolDiscriminator? Type1765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseTextDone? Type1766 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseTextDoneType? Type1767 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDelta? Type1768 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDeltaType? Type1769 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDone? Type1770 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDoneType? Type1771 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioDelta? Type1772 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioDeltaType? Type1773 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioDone? Type1774 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection? Type1774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioDoneType? Type1775 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness? Type1775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDelta? Type1776 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType? Type1776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDeltaType? Type1777 { get; set; } + public global::System.Collections.Generic.IList? Type1777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDone? Type1778 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type1778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDoneType? Type1779 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeRateLimitsUpdated? Type1780 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedType? Type1781 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1781 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1782 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedRateLimit? Type1783 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedRateLimitName? Type1784 { get; set; } + public global::tryAGI.OpenAI.RealtimeConnectParams? Type1784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1785 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1786 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject? Type1787 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1788 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1789 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1790 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1791 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1792 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1793 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1794 { get; set; } + public global::System.Collections.Generic.IList? Type1794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1795 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1796 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1797 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1797 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1798 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1799 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1800 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1801 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1802 { get; set; } + public global::System.Collections.Generic.IList? Type1802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1803 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1804 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1805 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1806 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1807 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1808 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1809 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1810 { get; set; } + public global::System.Collections.Generic.IList? Type1810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1811 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventError? Type1812 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1813 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1814 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1815 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1816 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1817 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1818 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1819 { get; set; } + public global::System.Collections.Generic.IList? Type1819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1820 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1821 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1822 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1823 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1824 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1825 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1826 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1827 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1828 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1829 { get; set; } + public global::tryAGI.OpenAI.Session? Type1829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1830 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestSessionDiscriminator? Type1830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1831 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1832 { get; set; } + public global::tryAGI.OpenAI.Session2? Type1832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1833 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1834 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1835 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1836 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1837 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1837 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1838 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness? Type1838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1839 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType? Type1839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1840 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1841 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret? Type1841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1842 { get; set; } + public global::System.Collections.Generic.IList? Type1842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1843 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1844 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1845 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1846 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1847 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseModel? Type1847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1848 { get; set; } + public global::System.Collections.Generic.IList? Type1848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1849 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1850 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1851 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1852 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1853 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseType? Type1853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1854 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1855 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1856 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1857 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1858 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1859 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1860 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1861 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1862 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1863 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1864 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1865 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1866 { get; set; } + public global::tryAGI.OpenAI.Error2? Type1866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1867 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1868 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1869 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCallErrorDiscriminator? Type1869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1870 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1871 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponse? Type1871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1872 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseObject? Type1872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1873 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1874 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1875 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEvent? Type1875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1876 { get; set; } + public global::tryAGI.OpenAI.RealtimeError? Type1876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1877 { get; set; } + public global::tryAGI.OpenAI.RealtimeErrorType? Type1877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1878 { get; set; } + public global::tryAGI.OpenAI.RealtimeErrorDetails? Type1878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1879 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreated? Type1879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1880 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreatedType? Type1880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1881 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionUpdated? Type1881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1882 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionUpdatedType? Type1882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1883 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationCreated? Type1883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1884 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationCreatedType? Type1884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1885 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversation? Type1885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1886 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationObject? Type1886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1887 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemCreated? Type1887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionCreated? Type1888 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemCreatedType? Type1888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionCreatedType? Type1889 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionCompleted? Type1889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1890 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionCompletedType? Type1890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1891 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionFailed? Type1891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Response? Type1892 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionFailedType? Type1892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3? Type1893 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemTruncated? Type1893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseError? Type1894 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemTruncatedType? Type1894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorCode? Type1895 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDeleted? Type1895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? Type1896 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDeletedType? Type1896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1897 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommitted? Type1897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Object? Type1898 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommittedType? Type1898 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1899 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCleared? Type1899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Status? Type1900 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferClearedType? Type1900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsage? Type1901 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStarted? Type1901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type1902 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStartedType? Type1902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type1903 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStopped? Type1903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1904 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStoppedType? Type1904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1905 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreated? Type1905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1906 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreatedType? Type1906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1907 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseDone? Type1907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1908 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseDoneType? Type1908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1909 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputItemAdded? Type1909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1910 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputItemAddedType? Type1910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1911 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputItemDone? Type1911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1912 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputItemDoneType? Type1912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1913 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseContentPartAdded? Type1913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1914 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseContentPartAddedType? Type1914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1915 { get; set; } + public global::tryAGI.OpenAI.RealtimeContentPart? Type1915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1916 { get; set; } + public global::tryAGI.OpenAI.RealtimeContentPartType? Type1916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1917 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseContentPartDone? Type1917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1918 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseContentPartDoneType? Type1918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1919 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseTextDelta? Type1919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1920 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseTextDeltaType? Type1920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1921 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseTextDone? Type1921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1922 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseTextDoneType? Type1922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1923 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDelta? Type1923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1924 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDeltaType? Type1924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1925 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDone? Type1925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1926 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDoneType? Type1926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1927 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioDelta? Type1927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1928 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioDeltaType? Type1928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1929 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioDone? Type1929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type1930 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioDoneType? Type1930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type1931 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDelta? Type1931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type1932 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDeltaType? Type1932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type1933 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDone? Type1933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEvent? Type1934 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDoneType? Type1934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEventType? Type1935 { get; set; } + public global::tryAGI.OpenAI.RealtimeRateLimitsUpdated? Type1935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEvent? Type1936 { get; set; } + public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedType? Type1936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEventType? Type1937 { get; set; } + public global::System.Collections.Generic.IList? Type1937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1938 { get; set; } + public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedRateLimit? Type1938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1939 { get; set; } + public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedRateLimitName? Type1939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1940 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1941 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1942 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject? Type1942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1943 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type1944 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type1945 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPython? Type1946 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type1947 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1948 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1949 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1950 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1951 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1952 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1953 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1954 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1955 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1956 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1957 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1958 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1959 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1960 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1961 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1962 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1963 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemList? Type1964 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1964 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1965 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventError? Type1965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemListObject? Type1966 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProb? Type1967 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1967 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1968 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1969 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1970 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1971 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1972 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1973 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1974 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1975 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1976 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1977 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1978 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1979 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1980 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1981 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1982 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1983 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1984 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1985 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1986 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1987 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1988 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1989 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1990 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1991 { get; set; } + public global::System.Collections.Generic.IList? Type1991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1992 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1993 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1994 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1995 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type1996 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1997 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type1998 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type1999 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type2000 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type2000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type2001 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type2001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type2002 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type2002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type2003 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type2003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type2004 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type2004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type2005 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type2005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type2006 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type2006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type2007 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type2007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type2008 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type2008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type2009 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type2009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type2010 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type2010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type2011 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type2011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type2012 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type2012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type2013 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type2013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEvent? Type2014 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type2014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type2015 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type2015 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2016 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type2016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type2017 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type2017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type2018 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type2018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type2019 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type2019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type2020 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type2020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type2021 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type2021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type2022 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type2022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type2023 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type2023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type2024 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type2024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type2025 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type2025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type2026 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type2026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderRequest? Type2027 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type2027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderRequestGrader? Type2028 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type2028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator? Type2029 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type2029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponse? Type2030 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type2030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2031 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type2031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2032 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type2032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2033 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type2033 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2034 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type2034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2035 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type2035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream? Type2036 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type2036 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2037 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type2037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput? Type2038 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type2038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2039 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type2039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateConversationBody? Type2040 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type2040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2041 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionCreated? Type2041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2042 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionCreatedType? Type2042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Upload? Type2043 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type2043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadObject? Type2044 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type2044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadStatus? Type2045 { get; set; } + public global::tryAGI.OpenAI.Response? Type2045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadCertificateRequest? Type2046 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3? Type2046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPart? Type2047 { get; set; } + public global::tryAGI.OpenAI.ResponseError? Type2047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPartObject? Type2048 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorCode? Type2048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2049 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? Type2049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2050 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type2050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2051 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Object? Type2051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2052 { get; set; } + public global::System.Collections.Generic.IList? Type2052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2053 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Status? Type2053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2054 { get; set; } + public global::tryAGI.OpenAI.ResponseUsage? Type2054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResult? Type2055 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type2055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2056 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type2056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2057 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type2057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2058 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type2058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResult? Type2059 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type2059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResultObject? Type2060 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type2060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResult? Type2061 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type2061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2062 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type2062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponse? Type2063 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type2063 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2064 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type2064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucket? Type2065 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type2065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2066 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type2066 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2067 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type2067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultItem? Type2068 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type2068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2069 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type2069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2070 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type2070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator? Type2071 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type2071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponseObject? Type2072 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type2072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.User? Type2073 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type2073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserObject? Type2074 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type2074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRole? Type2075 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEvent? Type2075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponse? Type2076 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEventType? Type2076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2077 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type2077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponse? Type2078 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type2078 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2079 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type2079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponseObject? Type2080 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type2080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2081 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEvent? Type2081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequestRole? Type2082 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEventType? Type2082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderRequest? Type2083 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type2083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderResponse? Type2084 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type2084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2085 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type2085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2086 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type2086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2087 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEvent? Type2087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2088 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEventType? Type2088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2089 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEvent? Type2089 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2090 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEventType? Type2090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2091 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type2091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2092 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type2092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2093 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type2093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2094 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type2094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type2095 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type2095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2096 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type2096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2097 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type2097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2098 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type2098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2099 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPython? Type2099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2100 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type2100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2101 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type2101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2102 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type2102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2103 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type2103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2104 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type2104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2105 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type2105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2106 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type2106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2107 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type2107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2108 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type2108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2109 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type2109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2110 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type2110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2111 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type2111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2112 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type2112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpired? Type2113 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEvent? Type2113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2114 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEventType? Type2114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2115 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type2115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2116 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type2116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailed? Type2117 { get; set; } + public global::tryAGI.OpenAI.ResponseItemList? Type2117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2118 { get; set; } + public global::System.Collections.Generic.IList? Type2118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2119 { get; set; } + public global::tryAGI.OpenAI.ResponseItemListObject? Type2119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2120 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProb? Type2120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2121 { get; set; } + public global::System.Collections.Generic.IList? Type2121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2122 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type2122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2123 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type2123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2124 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type2124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2125 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type2125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2126 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type2126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2127 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type2127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2128 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type2128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2129 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type2129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2130 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type2130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2131 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type2131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2132 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type2132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2133 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type2133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2134 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type2134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2135 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type2135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2136 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type2136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2137 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type2137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2138 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type2138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2139 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type2139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2140 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type2140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2141 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type2141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2142 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type2142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2143 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type2143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2144 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type2144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2145 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEvent? Type2145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2146 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEventType? Type2146 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2147 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type2147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2148 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type2148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2149 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type2149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2150 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type2150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2151 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type2151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2152 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type2152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2153 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type2153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2154 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type2154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2155 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type2155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2156 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type2156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2157 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type2157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2158 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type2158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailed? Type2159 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type2159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2160 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type2160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2161 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type2161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2162 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type2162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2163 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type2163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2164 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type2164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2165 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type2165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2166 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type2166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventType? Type2167 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEvent? Type2167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventBase? Type2168 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type2168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionUpdate? Type2169 { get; set; } + public global::System.Collections.Generic.IList? Type2169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionUpdateType? Type2170 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type2170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferAppend? Type2171 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type2171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferAppendType? Type2172 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type2172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommit? Type2173 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type2173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommitType? Type2174 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type2174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferClear? Type2175 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type2175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferClearType? Type2176 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type2176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemCreate? Type2177 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type2177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemCreateType? Type2178 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type2178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemTruncate? Type2179 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type2179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemTruncateType? Type2180 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequest? Type2180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDelete? Type2181 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequestGrader? Type2181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDeleteType? Type2182 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator? Type2182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreate? Type2183 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponse? Type2183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateType? Type2184 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponse? Type2185 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2186 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseModalitie? Type2187 { get; set; } + public global::System.Collections.Generic.IList? Type2187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseVoice? Type2188 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2189 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream? Type2189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseTool? Type2190 { get; set; } + public global::System.Collections.Generic.IList? Type2190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2191 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput? Type2191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseToolChoice? Type2192 { get; set; } + public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2193 { get; set; } + public global::tryAGI.OpenAI.UpdateConversationBody? Type2193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseMaxOutputTokens? Type2194 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCancel? Type2195 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCancelType? Type2196 { get; set; } + public global::tryAGI.OpenAI.Upload? Type2196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequest? Type2197 { get; set; } + public global::tryAGI.OpenAI.UploadObject? Type2197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type2198 { get; set; } + public global::tryAGI.OpenAI.UploadStatus? Type2198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type2199 { get; set; } + public global::tryAGI.OpenAI.UploadCertificateRequest? Type2199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type2200 { get; set; } + public global::tryAGI.OpenAI.UploadPart? Type2200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type2201 { get; set; } + public global::tryAGI.OpenAI.UploadPartObject? Type2201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type2202 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type2203 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type2204 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type2205 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type2206 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainersOrder? Type2207 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type2208 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResult? Type2208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListConversationItemsOrder? Type2209 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type2210 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type2211 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type2212 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResult? Type2212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type2213 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResultObject? Type2213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type2214 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResult? Type2214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type2215 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesOrder? Type2216 { get; set; } + public global::tryAGI.OpenAI.UsageResponse? Type2216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type2217 { get; set; } + public global::System.Collections.Generic.IList? Type2217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type2218 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucket? Type2218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type2219 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2220 { get; set; } + public global::System.Collections.Generic.IList? Type2220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type2221 { get; set; } + public global::tryAGI.OpenAI.ResultItem? Type2221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2222 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type2223 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type2224 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator? Type2224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2225 { get; set; } + public global::tryAGI.OpenAI.UsageResponseObject? Type2225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type2226 { get; set; } + public global::tryAGI.OpenAI.User? Type2226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type2227 { get; set; } + public global::tryAGI.OpenAI.UserObject? Type2227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type2228 { get; set; } + public global::tryAGI.OpenAI.UserRole? Type2228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2229 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponse? Type2229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type2230 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type2231 { get; set; } + public global::tryAGI.OpenAI.UserListResponse? Type2231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2232 { get; set; } + public global::System.Collections.Generic.IList? Type2232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type2233 { get; set; } + public global::tryAGI.OpenAI.UserListResponseObject? Type2233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type2234 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2235 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequestRole? Type2235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type2236 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderRequest? Type2236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type2237 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderResponse? Type2237 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2238 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2239 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2240 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2241 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2242 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2243 { get; set; } + public global::System.Collections.Generic.IList? Type2243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2244 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSource? Type2245 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2246 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSize? Type2247 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2248 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type2248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2249 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2250 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2251 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2252 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2253 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2254 { get; set; } + public global::System.Collections.Generic.IList? Type2254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2255 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type2256 { get; set; } + public global::System.Collections.Generic.IList? Type2256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type2257 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsOrder? Type2258 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2258 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2259 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2260 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type2261 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2261 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2262 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2263 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2263 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2264 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2265 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2266 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpired? Type2266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2267 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2268 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2269 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2270 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailed? Type2270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2271 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2272 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type2273 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2274 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2275 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2275 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2276 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2277 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2278 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2279 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2280 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2281 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2282 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2283 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2284 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2285 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2286 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2287 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2288 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2289 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2290 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2291 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2292 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2293 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2294 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2295 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2296 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2297 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2298 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2299 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2300 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2301 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2302 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2303 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2304 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2305 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2306 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2307 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2308 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2309 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2310 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2311 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseFailed? Type2312 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2313 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2314 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2315 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2316 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2317 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2318 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2319 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventType? Type2320 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventBase? Type2321 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionUpdate? Type2322 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeSessionUpdateType? Type2323 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeInputAudioBufferAppend? Type2324 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeInputAudioBufferAppendType? Type2325 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommit? Type2326 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommitType? Type2327 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeInputAudioBufferClear? Type2328 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeInputAudioBufferClearType? Type2329 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemCreate? Type2330 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemCreateType? Type2331 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemTruncate? Type2332 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemTruncateType? Type2333 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemDelete? Type2334 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemDeleteType? Type2335 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreate? Type2336 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateType? Type2337 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateResponse? Type2338 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2339 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseModalitie? Type2340 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseVoice? Type2341 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2342 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseTool? Type2343 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2344 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseToolChoice? Type2345 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2346 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseMaxOutputTokens? Type2347 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCancel? Type2348 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeResponseCancelType? Type2349 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateBatchRequest? Type2350 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type2351 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type2352 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type2353 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type2354 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UpdateEvalRequest? Type2355 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type2356 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAssistantsOrder? Type2357 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type2358 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type2359 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListContainersOrder? Type2360 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type2361 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListConversationItemsOrder? Type2362 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListEvalsOrder? Type2363 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type2364 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type2365 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type2366 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type2367 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type2368 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesOrder? Type2369 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type2370 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type2371 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type2372 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2373 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type2374 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2375 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type2376 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type2377 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2378 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type2379 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type2380 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type2381 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2382 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type2383 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type2384 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2385 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type2386 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type2387 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2388 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type2389 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type2390 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2391 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2392 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2393 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2394 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2395 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2396 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2397 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSource? Type2398 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2399 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSize? Type2400 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2401 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2402 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2403 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2404 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2405 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2406 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2407 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2408 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListInputItemsOrder? Type2409 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListMessagesOrder? Type2410 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunsOrder? Type2411 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2412 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2413 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsOrder? Type2414 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2415 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2416 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2417 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2418 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2419 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2420 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2421 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2422 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2423 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type2424 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type2425 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalResponse? Type2426 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2427 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2428 { get; set; } } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscription.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscription.Json.g.cs new file mode 100644 index 00000000..e5d12fb2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscription.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class AudioTranscription + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.AudioTranscription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AudioTranscription), + jsonSerializerContext) as global::tryAGI.OpenAI.AudioTranscription; + } + + /// + /// 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.AudioTranscription? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.AudioTranscription), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AudioTranscription; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscription.g.cs similarity index 67% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscription.g.cs index 68e7dc9b..ced04cc9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscription.g.cs @@ -4,9 +4,9 @@ namespace tryAGI.OpenAI { /// - /// Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service. + /// /// - public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioTranscription + public sealed partial class AudioTranscription { /// /// The language of the input audio. Supplying the input language in
@@ -17,11 +17,11 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioT public string? Language { get; set; } /// - /// The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`. + /// The model to use for transcription. Current options are `whisper-1`, `gpt-4o-transcribe-latest`, `gpt-4o-mini-transcribe`, and `gpt-4o-transcribe`. /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelJsonConverter))] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel? Model { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AudioTranscriptionModelJsonConverter))] + public global::tryAGI.OpenAI.AudioTranscriptionModel? Model { get; set; } /// /// An optional text to guide the model's style or continue a previous audio
@@ -39,7 +39,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioT 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. /// /// /// The language of the input audio. Supplying the input language in
@@ -47,7 +47,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioT /// will improve accuracy and latency. /// /// - /// The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`. + /// The model to use for transcription. Current options are `whisper-1`, `gpt-4o-transcribe-latest`, `gpt-4o-mini-transcribe`, and `gpt-4o-transcribe`. /// /// /// An optional text to guide the model's style or continue a previous audio
@@ -58,9 +58,9 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioT #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeTranscriptionSessionCreateRequestInputAudioTranscription( + public AudioTranscription( string? language, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel? model, + global::tryAGI.OpenAI.AudioTranscriptionModel? model, string? prompt) { this.Language = language; @@ -69,9 +69,9 @@ public RealtimeTranscriptionSessionCreateRequestInputAudioTranscription( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeTranscriptionSessionCreateRequestInputAudioTranscription() + public AudioTranscription() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscriptionModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscriptionModel.g.cs new file mode 100644 index 00000000..d8e8fe16 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AudioTranscriptionModel.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The model to use for transcription. Current options are `whisper-1`, `gpt-4o-transcribe-latest`, `gpt-4o-mini-transcribe`, and `gpt-4o-transcribe`. + /// + public enum AudioTranscriptionModel + { + /// + /// + /// + Whisper1, + /// + /// + /// + Gpt4oTranscribeLatest, + /// + /// + /// + Gpt4oMiniTranscribe, + /// + /// + /// + Gpt4oTranscribe, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AudioTranscriptionModelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AudioTranscriptionModel value) + { + return value switch + { + AudioTranscriptionModel.Whisper1 => "whisper-1", + AudioTranscriptionModel.Gpt4oTranscribeLatest => "gpt-4o-transcribe-latest", + AudioTranscriptionModel.Gpt4oMiniTranscribe => "gpt-4o-mini-transcribe", + AudioTranscriptionModel.Gpt4oTranscribe => "gpt-4o-transcribe", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AudioTranscriptionModel? ToEnum(string value) + { + return value switch + { + "whisper-1" => AudioTranscriptionModel.Whisper1, + "gpt-4o-transcribe-latest" => AudioTranscriptionModel.Gpt4oTranscribeLatest, + "gpt-4o-mini-transcribe" => AudioTranscriptionModel.Gpt4oMiniTranscribe, + "gpt-4o-transcribe" => AudioTranscriptionModel.Gpt4oTranscribe, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NoiseReductionType.g.cs similarity index 56% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReductionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NoiseReductionType.g.cs index b8249df7..672f26c9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReductionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NoiseReductionType.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. /// - public enum RealtimeSessionCreateRequestAudioInputNoiseReductionType + public enum NoiseReductionType { /// /// @@ -21,29 +21,29 @@ public enum RealtimeSessionCreateRequestAudioInputNoiseReductionType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestAudioInputNoiseReductionTypeExtensions + public static class NoiseReductionTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestAudioInputNoiseReductionType value) + public static string ToValueString(this NoiseReductionType value) { return value switch { - RealtimeSessionCreateRequestAudioInputNoiseReductionType.NearField => "near_field", - RealtimeSessionCreateRequestAudioInputNoiseReductionType.FarField => "far_field", + NoiseReductionType.NearField => "near_field", + NoiseReductionType.FarField => "far_field", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestAudioInputNoiseReductionType? ToEnum(string value) + public static NoiseReductionType? ToEnum(string value) { return value switch { - "near_field" => RealtimeSessionCreateRequestAudioInputNoiseReductionType.NearField, - "far_field" => RealtimeSessionCreateRequestAudioInputNoiseReductionType.FarField, + "near_field" => NoiseReductionType.NearField, + "far_field" => NoiseReductionType.FarField, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreate.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreate.Json.g.cs new file mode 100644 index 00000000..fccdc91c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventConversationItemCreate + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate; + } + + /// + /// 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.RealtimeBetaClientEventConversationItemCreate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventConversationItemCreate), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreate.g.cs new file mode 100644 index 00000000..f76695ab --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreate.g.cs @@ -0,0 +1,101 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Add a new Item to the Conversation's context, including messages, function
+ /// calls, and function call responses. This event can be used both to populate a
+ /// "history" of the conversation and to add new items mid-stream, but has the
+ /// current limitation that it cannot populate assistant audio messages.
+ /// If successful, the server will respond with a `conversation.item.created`
+ /// event, otherwise an `error` event will be sent. + ///
+ public sealed partial class RealtimeBetaClientEventConversationItemCreate + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("item")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeConversationItem Item { get; set; } + + /// + /// The ID of the preceding item after which the new item will be inserted.
+ /// If not set, the new item will be appended to the end of the conversation.
+ /// If set to `root`, the new item will be added to the beginning of the conversation.
+ /// If set to an existing ID, it allows an item to be inserted mid-conversation. If the
+ /// ID cannot be found, an error will be returned and the item will not be added. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("previous_item_id")] + public string? PreviousItemId { get; set; } + + /// + /// The event type, must be `conversation.item.create`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemCreateTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + /// + /// + /// The ID of the preceding item after which the new item will be inserted.
+ /// If not set, the new item will be appended to the end of the conversation.
+ /// If set to `root`, the new item will be added to the beginning of the conversation.
+ /// If set to an existing ID, it allows an item to be inserted mid-conversation. If the
+ /// ID cannot be found, an error will be returned and the item will not be added. + /// + /// + /// The event type, must be `conversation.item.create`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventConversationItemCreate( + global::tryAGI.OpenAI.RealtimeConversationItem item, + string? eventId, + string? previousItemId, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType type) + { + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); + this.EventId = eventId; + this.PreviousItemId = previousItemId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventConversationItemCreate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreateType.g.cs new file mode 100644 index 00000000..3e637f28 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemCreateType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.create`. + /// + public enum RealtimeBetaClientEventConversationItemCreateType + { + /// + /// + /// + ConversationItemCreate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventConversationItemCreateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventConversationItemCreateType value) + { + return value switch + { + RealtimeBetaClientEventConversationItemCreateType.ConversationItemCreate => "conversation.item.create", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventConversationItemCreateType? ToEnum(string value) + { + return value switch + { + "conversation.item.create" => RealtimeBetaClientEventConversationItemCreateType.ConversationItemCreate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDelete.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDelete.Json.g.cs new file mode 100644 index 00000000..6af18385 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDelete.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventConversationItemDelete + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete; + } + + /// + /// 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.RealtimeBetaClientEventConversationItemDelete? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventConversationItemDelete), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDelete.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDelete.g.cs new file mode 100644 index 00000000..3b6caa99 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDelete.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event when you want to remove any item from the conversation
+ /// history. The server will respond with a `conversation.item.deleted` event,
+ /// unless the item does not exist in the conversation history, in which case the
+ /// server will respond with an error. + ///
+ public sealed partial class RealtimeBetaClientEventConversationItemDelete + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The ID of the item to delete. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `conversation.item.delete`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemDeleteTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The ID of the item to delete. + /// + /// + /// The event type, must be `conversation.item.delete`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventConversationItemDelete( + string itemId, + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType type) + { + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventConversationItemDelete() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDeleteType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDeleteType.g.cs new file mode 100644 index 00000000..e62d1688 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemDeleteType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.delete`. + /// + public enum RealtimeBetaClientEventConversationItemDeleteType + { + /// + /// + /// + ConversationItemDelete, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventConversationItemDeleteTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventConversationItemDeleteType value) + { + return value switch + { + RealtimeBetaClientEventConversationItemDeleteType.ConversationItemDelete => "conversation.item.delete", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventConversationItemDeleteType? ToEnum(string value) + { + return value switch + { + "conversation.item.delete" => RealtimeBetaClientEventConversationItemDeleteType.ConversationItemDelete, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieve.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieve.Json.g.cs new file mode 100644 index 00000000..16d6bbbc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieve.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventConversationItemRetrieve + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve; + } + + /// + /// 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.RealtimeBetaClientEventConversationItemRetrieve? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventConversationItemRetrieve), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieve.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieve.g.cs new file mode 100644 index 00000000..79c92c7a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieve.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event when you want to retrieve the server's representation of a specific item in the conversation history. This is useful, for example, to inspect user audio after noise cancellation and VAD.
+ /// The server will respond with a `conversation.item.retrieved` event,
+ /// unless the item does not exist in the conversation history, in which case the
+ /// server will respond with an error. + ///
+ public sealed partial class RealtimeBetaClientEventConversationItemRetrieve + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The ID of the item to retrieve. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `conversation.item.retrieve`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemRetrieveTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The ID of the item to retrieve. + /// + /// + /// The event type, must be `conversation.item.retrieve`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventConversationItemRetrieve( + string itemId, + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType type) + { + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventConversationItemRetrieve() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieveType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieveType.g.cs new file mode 100644 index 00000000..6c4f7853 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemRetrieveType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.retrieve`. + /// + public enum RealtimeBetaClientEventConversationItemRetrieveType + { + /// + /// + /// + ConversationItemRetrieve, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventConversationItemRetrieveTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventConversationItemRetrieveType value) + { + return value switch + { + RealtimeBetaClientEventConversationItemRetrieveType.ConversationItemRetrieve => "conversation.item.retrieve", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventConversationItemRetrieveType? ToEnum(string value) + { + return value switch + { + "conversation.item.retrieve" => RealtimeBetaClientEventConversationItemRetrieveType.ConversationItemRetrieve, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncate.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncate.Json.g.cs new file mode 100644 index 00000000..a412ecb5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventConversationItemTruncate + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate; + } + + /// + /// 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.RealtimeBetaClientEventConversationItemTruncate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventConversationItemTruncate), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncate.g.cs new file mode 100644 index 00000000..1349667c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncate.g.cs @@ -0,0 +1,107 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to truncate a previous assistant message’s audio. The server
+ /// will produce audio faster than realtime, so this event is useful when the user
+ /// interrupts to truncate audio that has already been sent to the client but not
+ /// yet played. This will synchronize the server's understanding of the audio with
+ /// the client's playback.
+ /// Truncating audio will delete the server-side text transcript to ensure there
+ /// is not text in the context that hasn't been heard by the user.
+ /// If successful, the server will respond with a `conversation.item.truncated`
+ /// event. + ///
+ public sealed partial class RealtimeBetaClientEventConversationItemTruncate + { + /// + /// Inclusive duration up to which audio is truncated, in milliseconds. If
+ /// the audio_end_ms is greater than the actual audio duration, the server
+ /// will respond with an error. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("audio_end_ms")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int AudioEndMs { get; set; } + + /// + /// The index of the content part to truncate. Set this to 0. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The ID of the assistant message item to truncate. Only assistant message
+ /// items can be truncated. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `conversation.item.truncate`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventConversationItemTruncateTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Inclusive duration up to which audio is truncated, in milliseconds. If
+ /// the audio_end_ms is greater than the actual audio duration, the server
+ /// will respond with an error. + /// + /// + /// The index of the content part to truncate. Set this to 0. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The ID of the assistant message item to truncate. Only assistant message
+ /// items can be truncated. + /// + /// + /// The event type, must be `conversation.item.truncate`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventConversationItemTruncate( + int audioEndMs, + int contentIndex, + string itemId, + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType type) + { + this.AudioEndMs = audioEndMs; + this.ContentIndex = contentIndex; + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventConversationItemTruncate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncateType.g.cs new file mode 100644 index 00000000..b02de18a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventConversationItemTruncateType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.truncate`. + /// + public enum RealtimeBetaClientEventConversationItemTruncateType + { + /// + /// + /// + ConversationItemTruncate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventConversationItemTruncateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventConversationItemTruncateType value) + { + return value switch + { + RealtimeBetaClientEventConversationItemTruncateType.ConversationItemTruncate => "conversation.item.truncate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventConversationItemTruncateType? ToEnum(string value) + { + return value switch + { + "conversation.item.truncate" => RealtimeBetaClientEventConversationItemTruncateType.ConversationItemTruncate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppend.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppend.Json.g.cs new file mode 100644 index 00000000..3bafdab4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppend.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventInputAudioBufferAppend + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend; + } + + /// + /// 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.RealtimeBetaClientEventInputAudioBufferAppend? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventInputAudioBufferAppend), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppend.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppend.g.cs new file mode 100644 index 00000000..19393d64 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppend.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to append audio bytes to the input audio buffer. The audio
+ /// buffer is temporary storage you can write to and later commit. In Server VAD
+ /// mode, the audio buffer is used to detect speech and the server will decide
+ /// when to commit. When Server VAD is disabled, you must commit the audio buffer
+ /// manually.
+ /// The client may choose how much audio to place in each event up to a maximum
+ /// of 15 MiB, for example streaming smaller chunks from the client may allow the
+ /// VAD to be more responsive. Unlike made other client events, the server will
+ /// not send a confirmation response to this event. + ///
+ public sealed partial class RealtimeBetaClientEventInputAudioBufferAppend + { + /// + /// Base64-encoded audio bytes. This must be in the format specified by the
+ /// `input_audio_format` field in the session configuration. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Audio { get; set; } + + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The event type, must be `input_audio_buffer.append`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferAppendTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Base64-encoded audio bytes. This must be in the format specified by the
+ /// `input_audio_format` field in the session configuration. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The event type, must be `input_audio_buffer.append`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventInputAudioBufferAppend( + string audio, + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType type) + { + this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventInputAudioBufferAppend() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppendType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppendType.g.cs new file mode 100644 index 00000000..2e416155 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferAppendType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `input_audio_buffer.append`. + /// + public enum RealtimeBetaClientEventInputAudioBufferAppendType + { + /// + /// + /// + InputAudioBufferAppend, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventInputAudioBufferAppendTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventInputAudioBufferAppendType value) + { + return value switch + { + RealtimeBetaClientEventInputAudioBufferAppendType.InputAudioBufferAppend => "input_audio_buffer.append", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventInputAudioBufferAppendType? ToEnum(string value) + { + return value switch + { + "input_audio_buffer.append" => RealtimeBetaClientEventInputAudioBufferAppendType.InputAudioBufferAppend, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClear.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClear.Json.g.cs new file mode 100644 index 00000000..8faf2da6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClear.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventInputAudioBufferClear + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear; + } + + /// + /// 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.RealtimeBetaClientEventInputAudioBufferClear? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventInputAudioBufferClear), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClear.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClear.g.cs new file mode 100644 index 00000000..4007ab33 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClear.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to clear the audio bytes in the buffer. The server will
+ /// respond with an `input_audio_buffer.cleared` event. + ///
+ public sealed partial class RealtimeBetaClientEventInputAudioBufferClear + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The event type, must be `input_audio_buffer.clear`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferClearTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The event type, must be `input_audio_buffer.clear`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventInputAudioBufferClear( + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType type) + { + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventInputAudioBufferClear() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClearType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClearType.g.cs new file mode 100644 index 00000000..209d117b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferClearType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `input_audio_buffer.clear`. + /// + public enum RealtimeBetaClientEventInputAudioBufferClearType + { + /// + /// + /// + InputAudioBufferClear, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventInputAudioBufferClearTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventInputAudioBufferClearType value) + { + return value switch + { + RealtimeBetaClientEventInputAudioBufferClearType.InputAudioBufferClear => "input_audio_buffer.clear", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventInputAudioBufferClearType? ToEnum(string value) + { + return value switch + { + "input_audio_buffer.clear" => RealtimeBetaClientEventInputAudioBufferClearType.InputAudioBufferClear, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommit.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommit.Json.g.cs new file mode 100644 index 00000000..746c8bc5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommit.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventInputAudioBufferCommit + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit; + } + + /// + /// 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.RealtimeBetaClientEventInputAudioBufferCommit? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventInputAudioBufferCommit), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommit.g.cs new file mode 100644 index 00000000..d1bbc6fc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommit.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to commit the user input audio buffer, which will create a
+ /// new user message item in the conversation. This event will produce an error
+ /// if the input audio buffer is empty. When in Server VAD mode, the client does
+ /// not need to send this event, the server will commit the audio buffer
+ /// automatically.
+ /// Committing the input audio buffer will trigger input audio transcription
+ /// (if enabled in session configuration), but it will not create a response
+ /// from the model. The server will respond with an `input_audio_buffer.committed`
+ /// event. + ///
+ public sealed partial class RealtimeBetaClientEventInputAudioBufferCommit + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The event type, must be `input_audio_buffer.commit`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventInputAudioBufferCommitTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// The event type, must be `input_audio_buffer.commit`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventInputAudioBufferCommit( + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType type) + { + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventInputAudioBufferCommit() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommitType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommitType.g.cs new file mode 100644 index 00000000..14a039ee --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventInputAudioBufferCommitType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `input_audio_buffer.commit`. + /// + public enum RealtimeBetaClientEventInputAudioBufferCommitType + { + /// + /// + /// + InputAudioBufferCommit, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventInputAudioBufferCommitTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventInputAudioBufferCommitType value) + { + return value switch + { + RealtimeBetaClientEventInputAudioBufferCommitType.InputAudioBufferCommit => "input_audio_buffer.commit", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventInputAudioBufferCommitType? ToEnum(string value) + { + return value switch + { + "input_audio_buffer.commit" => RealtimeBetaClientEventInputAudioBufferCommitType.InputAudioBufferCommit, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClear.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClear.Json.g.cs new file mode 100644 index 00000000..b1f118be --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClear.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventOutputAudioBufferClear + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear; + } + + /// + /// 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.RealtimeBetaClientEventOutputAudioBufferClear? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventOutputAudioBufferClear), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClear.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClear.g.cs new file mode 100644 index 00000000..e77bc617 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClear.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// **WebRTC Only:** Emit to cut off the current audio response. This will trigger the server to
+ /// stop generating audio and emit a `output_audio_buffer.cleared` event. This
+ /// event should be preceded by a `response.cancel` client event to stop the
+ /// generation of the current response.
+ /// [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + ///
+ public sealed partial class RealtimeBetaClientEventOutputAudioBufferClear + { + /// + /// The unique ID of the client event used for error handling. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// The event type, must be `output_audio_buffer.clear`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventOutputAudioBufferClearTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the client event used for error handling. + /// + /// + /// The event type, must be `output_audio_buffer.clear`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventOutputAudioBufferClear( + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType type) + { + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventOutputAudioBufferClear() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClearType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClearType.g.cs new file mode 100644 index 00000000..8dff2bbe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventOutputAudioBufferClearType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `output_audio_buffer.clear`. + /// + public enum RealtimeBetaClientEventOutputAudioBufferClearType + { + /// + /// + /// + OutputAudioBufferClear, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventOutputAudioBufferClearTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventOutputAudioBufferClearType value) + { + return value switch + { + RealtimeBetaClientEventOutputAudioBufferClearType.OutputAudioBufferClear => "output_audio_buffer.clear", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventOutputAudioBufferClearType? ToEnum(string value) + { + return value switch + { + "output_audio_buffer.clear" => RealtimeBetaClientEventOutputAudioBufferClearType.OutputAudioBufferClear, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancel.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancel.Json.g.cs new file mode 100644 index 00000000..10767d7b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventResponseCancel + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel; + } + + /// + /// 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.RealtimeBetaClientEventResponseCancel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventResponseCancel), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancel.g.cs new file mode 100644 index 00000000..fef358e8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancel.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to cancel an in-progress response. The server will respond
+ /// with a `response.done` event with a status of `response.status=cancelled`. If
+ /// there is no response to cancel, the server will respond with an error. + ///
+ public sealed partial class RealtimeBetaClientEventResponseCancel + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// A specific response ID to cancel - if not provided, will cancel an
+ /// in-progress response in the default conversation. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + public string? ResponseId { get; set; } + + /// + /// The event type, must be `response.cancel`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCancelTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// A specific response ID to cancel - if not provided, will cancel an
+ /// in-progress response in the default conversation. + /// + /// + /// The event type, must be `response.cancel`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventResponseCancel( + string? eventId, + string? responseId, + global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType type) + { + this.EventId = eventId; + this.ResponseId = responseId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventResponseCancel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancelType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancelType.g.cs new file mode 100644 index 00000000..2835b1fc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCancelType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.cancel`. + /// + public enum RealtimeBetaClientEventResponseCancelType + { + /// + /// + /// + ResponseCancel, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventResponseCancelTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventResponseCancelType value) + { + return value switch + { + RealtimeBetaClientEventResponseCancelType.ResponseCancel => "response.cancel", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventResponseCancelType? ToEnum(string value) + { + return value switch + { + "response.cancel" => RealtimeBetaClientEventResponseCancelType.ResponseCancel, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreate.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreate.Json.g.cs new file mode 100644 index 00000000..a48d299b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventResponseCreate + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate; + } + + /// + /// 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.RealtimeBetaClientEventResponseCreate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventResponseCreate), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreate.g.cs new file mode 100644 index 00000000..c327d99d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreate.g.cs @@ -0,0 +1,86 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// This event instructs the server to create a Response, which means triggering
+ /// model inference. When in Server VAD mode, the server will create Responses
+ /// automatically.
+ /// A Response will include at least one Item, and may have two, in which case
+ /// the second will be a function call. These Items will be appended to the
+ /// conversation history.
+ /// The server will respond with a `response.created` event, events for Items
+ /// and content created, and finally a `response.done` event to indicate the
+ /// Response is complete.
+ /// The `response.create` event can optionally include inference configuration like
+ /// `instructions`, and `temperature`. These fields will override the Session's
+ /// configuration for this Response only.
+ /// Responses can be created out-of-band of the default Conversation, meaning that they can
+ /// have arbitrary input, and it's possible to disable writing the output to the Conversation.
+ /// Only one Response can write to the default Conversation at a time, but otherwise multiple
+ /// Responses can be created in parallel.
+ /// Clients can set `conversation` to `none` to create a Response that does not write to the default
+ /// Conversation. Arbitrary input can be provided with the `input` field, which is an array accepting
+ /// raw Items and references to existing Items. + ///
+ public sealed partial class RealtimeBetaClientEventResponseCreate + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// Create a new Realtime response with these parameters + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Response { get; set; } + + /// + /// The event type, must be `response.create`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventResponseCreateTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// Create a new Realtime response with these parameters + /// + /// + /// The event type, must be `response.create`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventResponseCreate( + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? response, + global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType type) + { + this.EventId = eventId; + this.Response = response; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventResponseCreate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreateType.g.cs new file mode 100644 index 00000000..d02c3aef --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventResponseCreateType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.create`. + /// + public enum RealtimeBetaClientEventResponseCreateType + { + /// + /// + /// + ResponseCreate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventResponseCreateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventResponseCreateType value) + { + return value switch + { + RealtimeBetaClientEventResponseCreateType.ResponseCreate => "response.create", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventResponseCreateType? ToEnum(string value) + { + return value switch + { + "response.create" => RealtimeBetaClientEventResponseCreateType.ResponseCreate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdate.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdate.Json.g.cs new file mode 100644 index 00000000..55306311 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventSessionUpdate + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate; + } + + /// + /// 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.RealtimeBetaClientEventSessionUpdate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventSessionUpdate), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdate.g.cs new file mode 100644 index 00000000..5ba62283 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdate.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to update the session’s default configuration.
+ /// The client may send this event at any time to update any field,
+ /// except for `voice`. However, note that once a session has been
+ /// initialized with a particular `model`, it can’t be changed to
+ /// another model using `session.update`.
+ /// When the server receives a `session.update`, it will respond
+ /// with a `session.updated` event showing the full, effective configuration.
+ /// Only the fields that are present are updated. To clear a field like
+ /// `instructions`, pass an empty string. + ///
+ public sealed partial class RealtimeBetaClientEventSessionUpdate + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// A new Realtime session configuration, with an ephemeral key. Default TTL
+ /// for keys is one minute. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeSessionCreateRequest Session { get; set; } + + /// + /// The event type, must be `session.update`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventSessionUpdateTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// A new Realtime session configuration, with an ephemeral key. Default TTL
+ /// for keys is one minute. + /// + /// + /// The event type, must be `session.update`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventSessionUpdate( + global::tryAGI.OpenAI.RealtimeSessionCreateRequest session, + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType type) + { + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventSessionUpdate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdateType.g.cs new file mode 100644 index 00000000..84aba55d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventSessionUpdateType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.update`. + /// + public enum RealtimeBetaClientEventSessionUpdateType + { + /// + /// + /// + SessionUpdate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventSessionUpdateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventSessionUpdateType value) + { + return value switch + { + RealtimeBetaClientEventSessionUpdateType.SessionUpdate => "session.update", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventSessionUpdateType? ToEnum(string value) + { + return value switch + { + "session.update" => RealtimeBetaClientEventSessionUpdateType.SessionUpdate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdate.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdate.Json.g.cs new file mode 100644 index 00000000..a6949fe6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaClientEventTranscriptionSessionUpdate + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate; + } + + /// + /// 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.RealtimeBetaClientEventTranscriptionSessionUpdate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaClientEventTranscriptionSessionUpdate), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdate.g.cs new file mode 100644 index 00000000..54a5c070 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdate.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Send this event to update a transcription session. + /// + public sealed partial class RealtimeBetaClientEventTranscriptionSessionUpdate + { + /// + /// Optional client-generated ID used to identify this event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// Realtime transcription session object configuration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest Session { get; set; } + + /// + /// The event type, must be `transcription_session.update`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaClientEventTranscriptionSessionUpdateTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional client-generated ID used to identify this event. + /// + /// + /// Realtime transcription session object configuration. + /// + /// + /// The event type, must be `transcription_session.update`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaClientEventTranscriptionSessionUpdate( + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest session, + string? eventId, + global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType type) + { + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.EventId = eventId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaClientEventTranscriptionSessionUpdate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdateType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdateType.g.cs new file mode 100644 index 00000000..9a3ce633 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaClientEventTranscriptionSessionUpdateType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `transcription_session.update`. + /// + public enum RealtimeBetaClientEventTranscriptionSessionUpdateType + { + /// + /// + /// + TranscriptionSessionUpdate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaClientEventTranscriptionSessionUpdateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaClientEventTranscriptionSessionUpdateType value) + { + return value switch + { + RealtimeBetaClientEventTranscriptionSessionUpdateType.TranscriptionSessionUpdate => "transcription_session.update", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaClientEventTranscriptionSessionUpdateType? ToEnum(string value) + { + return value switch + { + "transcription_session.update" => RealtimeBetaClientEventTranscriptionSessionUpdateType.TranscriptionSessionUpdate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponse.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponse.Json.g.cs new file mode 100644 index 00000000..c66fa29e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponse; + } + + /// + /// 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.RealtimeBetaResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponse.g.cs new file mode 100644 index 00000000..1a1e394d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponse.g.cs @@ -0,0 +1,219 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The response resource. + /// + public sealed partial class RealtimeBetaResponse + { + /// + /// Which conversation the response is added to, determined by the `conversation`
+ /// field in the `response.create` event. If `auto`, the response will be added to
+ /// the default conversation and the value of `conversation_id` will be an id like
+ /// `conv_1234`. If `none`, the response will not be added to any conversation and
+ /// the value of `conversation_id` will be `null`. If responses are being triggered
+ /// by server VAD, the response will be added to the default conversation, thus
+ /// the `conversation_id` will be an id like `conv_1234`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] + public string? ConversationId { get; set; } + + /// + /// The unique ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Maximum number of output tokens for a single assistant response,
+ /// inclusive of tool calls, that was used in this response. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_output_tokens")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? MaxOutputTokens { get; set; } + + /// + /// Set of 16 key-value pairs that can be attached to an object. This can be
+ /// useful for storing additional information about the object in a structured
+ /// format, and querying for objects via API or the dashboard.
+ /// Keys are strings with a maximum length of 64 characters. Values are strings
+ /// with a maximum length of 512 characters. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::System.Collections.Generic.Dictionary? Metadata { get; set; } + + /// + /// The set of modalities the model used to respond. If there are multiple modalities,
+ /// the model will pick one, for example if `modalities` is `["text", "audio"]`, the model
+ /// could be responding in either text or audio. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("modalities")] + public global::System.Collections.Generic.IList? Modalities { get; set; } + + /// + /// The object type, must be `realtime.response`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseObjectJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Object { get; set; } + + /// + /// The list of output items generated by the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::System.Collections.Generic.IList? Output { get; set; } + + /// + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_audio_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseOutputAudioFormatJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? OutputAudioFormat { get; set; } + + /// + /// The final status of the response (`completed`, `cancelled`, `failed`, or
+ /// `incomplete`, `in_progress`). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Status { get; set; } + + /// + /// Additional details about the status. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status_details")] + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? StatusDetails { get; set; } + + /// + /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public double? Temperature { get; set; } + + /// + /// Usage statistics for the Response, this will correspond to billing. A
+ /// Realtime API session will maintain a conversation context and append new
+ /// Items to the Conversation, thus output from previous turns (text and
+ /// audio tokens) will become the input for later turns. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Usage { get; set; } + + /// + /// Example: ash + /// + /// ash + [global::System.Text.Json.Serialization.JsonPropertyName("voice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter))] + public global::tryAGI.OpenAI.VoiceIdsShared? Voice { 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. + /// + /// + /// Which conversation the response is added to, determined by the `conversation`
+ /// field in the `response.create` event. If `auto`, the response will be added to
+ /// the default conversation and the value of `conversation_id` will be an id like
+ /// `conv_1234`. If `none`, the response will not be added to any conversation and
+ /// the value of `conversation_id` will be `null`. If responses are being triggered
+ /// by server VAD, the response will be added to the default conversation, thus
+ /// the `conversation_id` will be an id like `conv_1234`. + /// + /// + /// The unique ID of the response. + /// + /// + /// Maximum number of output tokens for a single assistant response,
+ /// inclusive of tool calls, that was used in this response. + /// + /// + /// Set of 16 key-value pairs that can be attached to an object. This can be
+ /// useful for storing additional information about the object in a structured
+ /// format, and querying for objects via API or the dashboard.
+ /// Keys are strings with a maximum length of 64 characters. Values are strings
+ /// with a maximum length of 512 characters. + /// + /// + /// The set of modalities the model used to respond. If there are multiple modalities,
+ /// the model will pick one, for example if `modalities` is `["text", "audio"]`, the model
+ /// could be responding in either text or audio. + /// + /// + /// The object type, must be `realtime.response`. + /// + /// + /// The list of output items generated by the response. + /// + /// + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// + /// + /// The final status of the response (`completed`, `cancelled`, `failed`, or
+ /// `incomplete`, `in_progress`). + /// + /// + /// Additional details about the status. + /// + /// + /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + /// + /// + /// Usage statistics for the Response, this will correspond to billing. A
+ /// Realtime API session will maintain a conversation context and append new
+ /// Items to the Conversation, thus output from previous turns (text and
+ /// audio tokens) will become the input for later turns. + /// + /// + /// Example: ash + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaResponse( + string? conversationId, + string? id, + global::tryAGI.OpenAI.AnyOf? maxOutputTokens, + global::System.Collections.Generic.Dictionary? metadata, + global::System.Collections.Generic.IList? modalities, + global::tryAGI.OpenAI.RealtimeBetaResponseObject? @object, + global::System.Collections.Generic.IList? output, + global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? outputAudioFormat, + global::tryAGI.OpenAI.RealtimeBetaResponseStatus? status, + global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? statusDetails, + double? temperature, + global::tryAGI.OpenAI.RealtimeBetaResponseUsage? usage, + global::tryAGI.OpenAI.VoiceIdsShared? voice) + { + this.ConversationId = conversationId; + this.Id = id; + this.MaxOutputTokens = maxOutputTokens; + this.Metadata = metadata; + this.Modalities = modalities; + this.Object = @object; + this.Output = output; + this.OutputAudioFormat = outputAudioFormat; + this.Status = status; + this.StatusDetails = statusDetails; + this.Temperature = temperature; + this.Usage = usage; + this.Voice = voice; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParams.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParams.Json.g.cs new file mode 100644 index 00000000..c9edbb77 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParams.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponseCreateParams + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams; + } + + /// + /// 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.RealtimeBetaResponseCreateParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponseCreateParams), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParams.g.cs new file mode 100644 index 00000000..880e57db --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParams.g.cs @@ -0,0 +1,230 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Create a new Realtime response with these parameters + /// + public sealed partial class RealtimeBetaResponseCreateParams + { + /// + /// Controls which conversation the response is added to. Currently supports
+ /// `auto` and `none`, with `auto` as the default value. The `auto` value
+ /// means that the contents of the response will be added to the default
+ /// conversation. Set this to `none` to create an out-of-band response which
+ /// will not add items to default conversation. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("conversation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Conversation { get; set; } + + /// + /// Input items to include in the prompt for the model. Using this field
+ /// creates a new context for this Response instead of using the default
+ /// conversation. An empty array `[]` will clear the context for this Response.
+ /// Note that this can include references to items from the default conversation. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("input")] + public global::System.Collections.Generic.IList? Input { get; set; } + + /// + /// The default system instructions (i.e. system message) prepended to model
+ /// calls. This field allows the client to guide the model on desired
+ /// responses. The model can be instructed on response content and format,
+ /// (e.g. "be extremely succinct", "act friendly", "here are examples of good
+ /// responses") and on audio behavior (e.g. "talk quickly", "inject emotion
+ /// into your voice", "laugh frequently"). The instructions are not guaranteed
+ /// to be followed by the model, but they provide guidance to the model on the
+ /// desired behavior.
+ /// Note that the server sets default instructions which will be used if this
+ /// field is not set and are visible in the `session.created` event at the
+ /// start of the session. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// Maximum number of output tokens for a single assistant response,
+ /// inclusive of tool calls. Provide an integer between 1 and 4096 to
+ /// limit output tokens, or `inf` for the maximum available tokens for a
+ /// given model. Defaults to `inf`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_output_tokens")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? MaxOutputTokens { get; set; } + + /// + /// Set of 16 key-value pairs that can be attached to an object. This can be
+ /// useful for storing additional information about the object in a structured
+ /// format, and querying for objects via API or the dashboard.
+ /// Keys are strings with a maximum length of 64 characters. Values are strings
+ /// with a maximum length of 512 characters. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::System.Collections.Generic.Dictionary? Metadata { get; set; } + + /// + /// The set of modalities the model can respond with. To disable audio,
+ /// set this to ["text"]. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("modalities")] + public global::System.Collections.Generic.IList? Modalities { get; set; } + + /// + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_audio_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsOutputAudioFormatJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? OutputAudioFormat { get; set; } + + /// + /// Reference to a prompt template and its variables.
+ /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + public global::tryAGI.OpenAI.Prompt2? Prompt { get; set; } + + /// + /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public double? Temperature { get; set; } + + /// + /// How the model chooses tools. Provide one of the string modes or force a specific
+ /// function/MCP tool.
+ /// Default Value: auto + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? ToolChoice { get; set; } + + /// + /// Tools (functions) available to the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// Example: ash + /// + /// ash + [global::System.Text.Json.Serialization.JsonPropertyName("voice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter))] + public global::tryAGI.OpenAI.VoiceIdsShared? Voice { 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. + /// + /// + /// Controls which conversation the response is added to. Currently supports
+ /// `auto` and `none`, with `auto` as the default value. The `auto` value
+ /// means that the contents of the response will be added to the default
+ /// conversation. Set this to `none` to create an out-of-band response which
+ /// will not add items to default conversation. + /// + /// + /// Input items to include in the prompt for the model. Using this field
+ /// creates a new context for this Response instead of using the default
+ /// conversation. An empty array `[]` will clear the context for this Response.
+ /// Note that this can include references to items from the default conversation. + /// + /// + /// The default system instructions (i.e. system message) prepended to model
+ /// calls. This field allows the client to guide the model on desired
+ /// responses. The model can be instructed on response content and format,
+ /// (e.g. "be extremely succinct", "act friendly", "here are examples of good
+ /// responses") and on audio behavior (e.g. "talk quickly", "inject emotion
+ /// into your voice", "laugh frequently"). The instructions are not guaranteed
+ /// to be followed by the model, but they provide guidance to the model on the
+ /// desired behavior.
+ /// Note that the server sets default instructions which will be used if this
+ /// field is not set and are visible in the `session.created` event at the
+ /// start of the session. + /// + /// + /// Maximum number of output tokens for a single assistant response,
+ /// inclusive of tool calls. Provide an integer between 1 and 4096 to
+ /// limit output tokens, or `inf` for the maximum available tokens for a
+ /// given model. Defaults to `inf`. + /// + /// + /// Set of 16 key-value pairs that can be attached to an object. This can be
+ /// useful for storing additional information about the object in a structured
+ /// format, and querying for objects via API or the dashboard.
+ /// Keys are strings with a maximum length of 64 characters. Values are strings
+ /// with a maximum length of 512 characters. + /// + /// + /// The set of modalities the model can respond with. To disable audio,
+ /// set this to ["text"]. + /// + /// + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// + /// + /// Reference to a prompt template and its variables.
+ /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + /// + /// + /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. + /// + /// + /// How the model chooses tools. Provide one of the string modes or force a specific
+ /// function/MCP tool.
+ /// Default Value: auto + /// + /// + /// Tools (functions) available to the model. + /// + /// + /// Example: ash + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaResponseCreateParams( + global::tryAGI.OpenAI.AnyOf? conversation, + global::System.Collections.Generic.IList? input, + string? instructions, + global::tryAGI.OpenAI.AnyOf? maxOutputTokens, + global::System.Collections.Generic.Dictionary? metadata, + global::System.Collections.Generic.IList? modalities, + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? outputAudioFormat, + global::tryAGI.OpenAI.Prompt2? prompt, + double? temperature, + global::tryAGI.OpenAI.AnyOf? toolChoice, + global::System.Collections.Generic.IList? tools, + global::tryAGI.OpenAI.VoiceIdsShared? voice) + { + this.Conversation = conversation; + this.Input = input; + this.Instructions = instructions; + this.MaxOutputTokens = maxOutputTokens; + this.Metadata = metadata; + this.Modalities = modalities; + this.OutputAudioFormat = outputAudioFormat; + this.Prompt = prompt; + this.Temperature = temperature; + this.ToolChoice = toolChoice; + this.Tools = tools; + this.Voice = voice; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaResponseCreateParams() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsConversation.g.cs new file mode 100644 index 00000000..701ffd87 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsConversation.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: auto + /// + public enum RealtimeBetaResponseCreateParamsConversation + { + /// + /// + /// + Auto, + /// + /// + /// + None, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseCreateParamsConversationExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseCreateParamsConversation value) + { + return value switch + { + RealtimeBetaResponseCreateParamsConversation.Auto => "auto", + RealtimeBetaResponseCreateParamsConversation.None => "none", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseCreateParamsConversation? ToEnum(string value) + { + return value switch + { + "auto" => RealtimeBetaResponseCreateParamsConversation.Auto, + "none" => RealtimeBetaResponseCreateParamsConversation.None, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsMaxOutputTokens.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsMaxOutputTokens.g.cs new file mode 100644 index 00000000..e22cf232 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsMaxOutputTokens.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeBetaResponseCreateParamsMaxOutputTokens + { + /// + /// + /// + Inf, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseCreateParamsMaxOutputTokensExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseCreateParamsMaxOutputTokens value) + { + return value switch + { + RealtimeBetaResponseCreateParamsMaxOutputTokens.Inf => "inf", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseCreateParamsMaxOutputTokens? ToEnum(string value) + { + return value switch + { + "inf" => RealtimeBetaResponseCreateParamsMaxOutputTokens.Inf, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsModalitie.g.cs new file mode 100644 index 00000000..4e8d9e27 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsModalitie.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeBetaResponseCreateParamsModalitie + { + /// + /// + /// + Text, + /// + /// + /// + Audio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseCreateParamsModalitieExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseCreateParamsModalitie value) + { + return value switch + { + RealtimeBetaResponseCreateParamsModalitie.Text => "text", + RealtimeBetaResponseCreateParamsModalitie.Audio => "audio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseCreateParamsModalitie? ToEnum(string value) + { + return value switch + { + "text" => RealtimeBetaResponseCreateParamsModalitie.Text, + "audio" => RealtimeBetaResponseCreateParamsModalitie.Audio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutputFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsOutputAudioFormat.g.cs similarity index 50% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutputFormat.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsOutputAudioFormat.g.cs index c1ccdda6..cf783d14 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutputFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsOutputAudioFormat.g.cs @@ -4,11 +4,9 @@ namespace tryAGI.OpenAI { /// - /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
- /// For `pcm16`, output audio is sampled at a rate of 24kHz.
- /// Default Value: pcm16 + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. ///
- public enum RealtimeSessionCreateRequestAudioOutputFormat + public enum RealtimeBetaResponseCreateParamsOutputAudioFormat { /// /// @@ -27,31 +25,31 @@ public enum RealtimeSessionCreateRequestAudioOutputFormat /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestAudioOutputFormatExtensions + public static class RealtimeBetaResponseCreateParamsOutputAudioFormatExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestAudioOutputFormat value) + public static string ToValueString(this RealtimeBetaResponseCreateParamsOutputAudioFormat value) { return value switch { - RealtimeSessionCreateRequestAudioOutputFormat.Pcm16 => "pcm16", - RealtimeSessionCreateRequestAudioOutputFormat.G711Ulaw => "g711_ulaw", - RealtimeSessionCreateRequestAudioOutputFormat.G711Alaw => "g711_alaw", + RealtimeBetaResponseCreateParamsOutputAudioFormat.Pcm16 => "pcm16", + RealtimeBetaResponseCreateParamsOutputAudioFormat.G711Ulaw => "g711_ulaw", + RealtimeBetaResponseCreateParamsOutputAudioFormat.G711Alaw => "g711_alaw", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestAudioOutputFormat? ToEnum(string value) + public static RealtimeBetaResponseCreateParamsOutputAudioFormat? ToEnum(string value) { return value switch { - "pcm16" => RealtimeSessionCreateRequestAudioOutputFormat.Pcm16, - "g711_ulaw" => RealtimeSessionCreateRequestAudioOutputFormat.G711Ulaw, - "g711_alaw" => RealtimeSessionCreateRequestAudioOutputFormat.G711Alaw, + "pcm16" => RealtimeBetaResponseCreateParamsOutputAudioFormat.Pcm16, + "g711_ulaw" => RealtimeBetaResponseCreateParamsOutputAudioFormat.G711Ulaw, + "g711_alaw" => RealtimeBetaResponseCreateParamsOutputAudioFormat.G711Alaw, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsTool.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsTool.Json.g.cs new file mode 100644 index 00000000..9457f5a8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsTool.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponseCreateParamsTool + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool; + } + + /// + /// 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.RealtimeBetaResponseCreateParamsTool? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponseCreateParamsTool), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsTool.g.cs similarity index 83% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsTool.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsTool.g.cs index f5a87547..0222f274 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsTool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsTool.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public sealed partial class RealtimeResponseCreateParamsTool + public sealed partial class RealtimeBetaResponseCreateParamsTool { /// /// The description of the function, including guidance on when and how
@@ -32,8 +32,8 @@ public sealed partial class RealtimeResponseCreateParamsTool /// The type of the tool, i.e. `function`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsToolTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseCreateParamsToolTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +42,7 @@ public sealed partial class RealtimeResponseCreateParamsTool 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. /// /// /// The description of the function, including guidance on when and how
@@ -61,11 +61,11 @@ public sealed partial class RealtimeResponseCreateParamsTool #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeResponseCreateParamsTool( + public RealtimeBetaResponseCreateParamsTool( string? description, string? name, object? parameters, - global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType? type) + global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? type) { this.Description = description; this.Name = name; @@ -74,9 +74,9 @@ public RealtimeResponseCreateParamsTool( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeResponseCreateParamsTool() + public RealtimeBetaResponseCreateParamsTool() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolParameters.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolParameters.Json.g.cs new file mode 100644 index 00000000..59844524 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolParameters.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponseCreateParamsToolParameters + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolParameters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolParameters), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolParameters; + } + + /// + /// 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.RealtimeBetaResponseCreateParamsToolParameters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponseCreateParamsToolParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolParameters; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolParameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolParameters.g.cs similarity index 86% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolParameters.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolParameters.g.cs index a0937ad3..5ac16d1a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolParameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolParameters.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Parameters of the function in JSON Schema. /// - public sealed partial class RealtimeSessionCreateResponseToolParameters + public sealed partial class RealtimeBetaResponseCreateParamsToolParameters { /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Type.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolType.g.cs similarity index 61% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Type.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolType.g.cs index a152ddd7..240b192a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Type.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseCreateParamsToolType.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// The type of the tool, i.e. `function`. /// - public enum RealtimeSessionCreateRequestToolVariant1Type + public enum RealtimeBetaResponseCreateParamsToolType { /// /// @@ -17,27 +17,27 @@ public enum RealtimeSessionCreateRequestToolVariant1Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestToolVariant1TypeExtensions + public static class RealtimeBetaResponseCreateParamsToolTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestToolVariant1Type value) + public static string ToValueString(this RealtimeBetaResponseCreateParamsToolType value) { return value switch { - RealtimeSessionCreateRequestToolVariant1Type.Function => "function", + RealtimeBetaResponseCreateParamsToolType.Function => "function", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestToolVariant1Type? ToEnum(string value) + public static RealtimeBetaResponseCreateParamsToolType? ToEnum(string value) { return value switch { - "function" => RealtimeSessionCreateRequestToolVariant1Type.Function, + "function" => RealtimeBetaResponseCreateParamsToolType.Function, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseMaxOutputTokens.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseMaxOutputTokens.g.cs new file mode 100644 index 00000000..2fe83ebc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseMaxOutputTokens.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeBetaResponseMaxOutputTokens + { + /// + /// + /// + Inf, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseMaxOutputTokensExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseMaxOutputTokens value) + { + return value switch + { + RealtimeBetaResponseMaxOutputTokens.Inf => "inf", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseMaxOutputTokens? ToEnum(string value) + { + return value switch + { + "inf" => RealtimeBetaResponseMaxOutputTokens.Inf, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseModalitie.g.cs new file mode 100644 index 00000000..7da40ce7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseModalitie.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeBetaResponseModalitie + { + /// + /// + /// + Text, + /// + /// + /// + Audio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseModalitieExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseModalitie value) + { + return value switch + { + RealtimeBetaResponseModalitie.Text => "text", + RealtimeBetaResponseModalitie.Audio => "audio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseModalitie? ToEnum(string value) + { + return value switch + { + "text" => RealtimeBetaResponseModalitie.Text, + "audio" => RealtimeBetaResponseModalitie.Audio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseObject.g.cs new file mode 100644 index 00000000..1fe2aa50 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseObject.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The object type, must be `realtime.response`. + /// + public enum RealtimeBetaResponseObject + { + /// + /// + /// + RealtimeResponse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseObject value) + { + return value switch + { + RealtimeBetaResponseObject.RealtimeResponse => "realtime.response", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseObject? ToEnum(string value) + { + return value switch + { + "realtime.response" => RealtimeBetaResponseObject.RealtimeResponse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsOutputAudioFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseOutputAudioFormat.g.cs similarity index 54% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsOutputAudioFormat.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseOutputAudioFormat.g.cs index 67892e75..dcf092ce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsOutputAudioFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseOutputAudioFormat.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. /// - public enum RealtimeResponseCreateParamsOutputAudioFormat + public enum RealtimeBetaResponseOutputAudioFormat { /// /// @@ -25,31 +25,31 @@ public enum RealtimeResponseCreateParamsOutputAudioFormat /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeResponseCreateParamsOutputAudioFormatExtensions + public static class RealtimeBetaResponseOutputAudioFormatExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeResponseCreateParamsOutputAudioFormat value) + public static string ToValueString(this RealtimeBetaResponseOutputAudioFormat value) { return value switch { - RealtimeResponseCreateParamsOutputAudioFormat.Pcm16 => "pcm16", - RealtimeResponseCreateParamsOutputAudioFormat.G711Ulaw => "g711_ulaw", - RealtimeResponseCreateParamsOutputAudioFormat.G711Alaw => "g711_alaw", + RealtimeBetaResponseOutputAudioFormat.Pcm16 => "pcm16", + RealtimeBetaResponseOutputAudioFormat.G711Ulaw => "g711_ulaw", + RealtimeBetaResponseOutputAudioFormat.G711Alaw => "g711_alaw", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeResponseCreateParamsOutputAudioFormat? ToEnum(string value) + public static RealtimeBetaResponseOutputAudioFormat? ToEnum(string value) { return value switch { - "pcm16" => RealtimeResponseCreateParamsOutputAudioFormat.Pcm16, - "g711_ulaw" => RealtimeResponseCreateParamsOutputAudioFormat.G711Ulaw, - "g711_alaw" => RealtimeResponseCreateParamsOutputAudioFormat.G711Alaw, + "pcm16" => RealtimeBetaResponseOutputAudioFormat.Pcm16, + "g711_ulaw" => RealtimeBetaResponseOutputAudioFormat.G711Ulaw, + "g711_alaw" => RealtimeBetaResponseOutputAudioFormat.G711Alaw, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatus.g.cs new file mode 100644 index 00000000..20ed066d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatus.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The final status of the response (`completed`, `cancelled`, `failed`, or
+ /// `incomplete`, `in_progress`). + ///
+ public enum RealtimeBetaResponseStatus + { + /// + /// + /// + Completed, + /// + /// + /// + Cancelled, + /// + /// + /// + Failed, + /// + /// + /// + Incomplete, + /// + /// + /// + InProgress, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseStatus value) + { + return value switch + { + RealtimeBetaResponseStatus.Completed => "completed", + RealtimeBetaResponseStatus.Cancelled => "cancelled", + RealtimeBetaResponseStatus.Failed => "failed", + RealtimeBetaResponseStatus.Incomplete => "incomplete", + RealtimeBetaResponseStatus.InProgress => "in_progress", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseStatus? ToEnum(string value) + { + return value switch + { + "completed" => RealtimeBetaResponseStatus.Completed, + "cancelled" => RealtimeBetaResponseStatus.Cancelled, + "failed" => RealtimeBetaResponseStatus.Failed, + "incomplete" => RealtimeBetaResponseStatus.Incomplete, + "in_progress" => RealtimeBetaResponseStatus.InProgress, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetails.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetails.Json.g.cs new file mode 100644 index 00000000..fad8f830 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetails.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponseStatusDetails + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails; + } + + /// + /// 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.RealtimeBetaResponseStatusDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponseStatusDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetails.g.cs new file mode 100644 index 00000000..33de7537 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetails.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Additional details about the status. + /// + public sealed partial class RealtimeBetaResponseStatusDetails + { + /// + /// A description of the error that caused the response to fail,
+ /// populated when the `status` is `failed`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Error { get; set; } + + /// + /// The reason the Response did not complete. For a `cancelled` Response,
+ /// one of `turn_detected` (the server VAD detected a new start of speech)
+ /// or `client_cancelled` (the client sent a cancel event). For an
+ /// `incomplete` Response, one of `max_output_tokens` or `content_filter`
+ /// (the server-side safety filter activated and cut off the response). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("reason")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsReasonJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Reason { get; set; } + + /// + /// The type of error that caused the response to fail, corresponding
+ /// with the `status` field (`completed`, `cancelled`, `incomplete`,
+ /// `failed`). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaResponseStatusDetailsTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A description of the error that caused the response to fail,
+ /// populated when the `status` is `failed`. + /// + /// + /// The reason the Response did not complete. For a `cancelled` Response,
+ /// one of `turn_detected` (the server VAD detected a new start of speech)
+ /// or `client_cancelled` (the client sent a cancel event). For an
+ /// `incomplete` Response, one of `max_output_tokens` or `content_filter`
+ /// (the server-side safety filter activated and cut off the response). + /// + /// + /// The type of error that caused the response to fail, corresponding
+ /// with the `status` field (`completed`, `cancelled`, `incomplete`,
+ /// `failed`). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaResponseStatusDetails( + global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? error, + global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? reason, + global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? type) + { + this.Error = error; + this.Reason = reason; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaResponseStatusDetails() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsError.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsError.Json.g.cs new file mode 100644 index 00000000..c9c4cd8c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponseStatusDetailsError + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError; + } + + /// + /// 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.RealtimeBetaResponseStatusDetailsError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponseStatusDetailsError), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsError.g.cs new file mode 100644 index 00000000..fca8d279 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsError.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A description of the error that caused the response to fail,
+ /// populated when the `status` is `failed`. + ///
+ public sealed partial class RealtimeBetaResponseStatusDetailsError + { + /// + /// Error code, if any. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + + /// + /// The type of error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Error code, if any. + /// + /// + /// The type of error. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaResponseStatusDetailsError( + string? code, + string? type) + { + this.Code = code; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaResponseStatusDetailsError() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsReason.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsReason.g.cs new file mode 100644 index 00000000..bce8cc6f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsReason.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The reason the Response did not complete. For a `cancelled` Response,
+ /// one of `turn_detected` (the server VAD detected a new start of speech)
+ /// or `client_cancelled` (the client sent a cancel event). For an
+ /// `incomplete` Response, one of `max_output_tokens` or `content_filter`
+ /// (the server-side safety filter activated and cut off the response). + ///
+ public enum RealtimeBetaResponseStatusDetailsReason + { + /// + /// + /// + TurnDetected, + /// + /// + /// + ClientCancelled, + /// + /// + /// + MaxOutputTokens, + /// + /// + /// + ContentFilter, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseStatusDetailsReasonExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseStatusDetailsReason value) + { + return value switch + { + RealtimeBetaResponseStatusDetailsReason.TurnDetected => "turn_detected", + RealtimeBetaResponseStatusDetailsReason.ClientCancelled => "client_cancelled", + RealtimeBetaResponseStatusDetailsReason.MaxOutputTokens => "max_output_tokens", + RealtimeBetaResponseStatusDetailsReason.ContentFilter => "content_filter", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseStatusDetailsReason? ToEnum(string value) + { + return value switch + { + "turn_detected" => RealtimeBetaResponseStatusDetailsReason.TurnDetected, + "client_cancelled" => RealtimeBetaResponseStatusDetailsReason.ClientCancelled, + "max_output_tokens" => RealtimeBetaResponseStatusDetailsReason.MaxOutputTokens, + "content_filter" => RealtimeBetaResponseStatusDetailsReason.ContentFilter, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsType.g.cs new file mode 100644 index 00000000..272e66c9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseStatusDetailsType.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of error that caused the response to fail, corresponding
+ /// with the `status` field (`completed`, `cancelled`, `incomplete`,
+ /// `failed`). + ///
+ public enum RealtimeBetaResponseStatusDetailsType + { + /// + /// + /// + Completed, + /// + /// + /// + Cancelled, + /// + /// + /// + Incomplete, + /// + /// + /// + Failed, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaResponseStatusDetailsTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaResponseStatusDetailsType value) + { + return value switch + { + RealtimeBetaResponseStatusDetailsType.Completed => "completed", + RealtimeBetaResponseStatusDetailsType.Cancelled => "cancelled", + RealtimeBetaResponseStatusDetailsType.Incomplete => "incomplete", + RealtimeBetaResponseStatusDetailsType.Failed => "failed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaResponseStatusDetailsType? ToEnum(string value) + { + return value switch + { + "completed" => RealtimeBetaResponseStatusDetailsType.Completed, + "cancelled" => RealtimeBetaResponseStatusDetailsType.Cancelled, + "incomplete" => RealtimeBetaResponseStatusDetailsType.Incomplete, + "failed" => RealtimeBetaResponseStatusDetailsType.Failed, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsage.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsage.Json.g.cs new file mode 100644 index 00000000..3e804d92 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsage.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponseUsage + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponseUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsage), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseUsage; + } + + /// + /// 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.RealtimeBetaResponseUsage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponseUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseUsage; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsage.g.cs new file mode 100644 index 00000000..a5afb622 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsage.g.cs @@ -0,0 +1,98 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Usage statistics for the Response, this will correspond to billing. A
+ /// Realtime API session will maintain a conversation context and append new
+ /// Items to the Conversation, thus output from previous turns (text and
+ /// audio tokens) will become the input for later turns. + ///
+ public sealed partial class RealtimeBetaResponseUsage + { + /// + /// Details about the input tokens used in the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_token_details")] + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? InputTokenDetails { get; set; } + + /// + /// The number of input tokens used in the Response, including text and
+ /// audio tokens. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens")] + public int? InputTokens { get; set; } + + /// + /// Details about the output tokens used in the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_token_details")] + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? OutputTokenDetails { get; set; } + + /// + /// The number of output tokens sent in the Response, including text and
+ /// audio tokens. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens")] + public int? OutputTokens { get; set; } + + /// + /// The total number of tokens in the Response including input and output
+ /// text and audio tokens. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")] + public int? TotalTokens { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Details about the input tokens used in the Response. + /// + /// + /// The number of input tokens used in the Response, including text and
+ /// audio tokens. + /// + /// + /// Details about the output tokens used in the Response. + /// + /// + /// The number of output tokens sent in the Response, including text and
+ /// audio tokens. + /// + /// + /// The total number of tokens in the Response including input and output
+ /// text and audio tokens. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaResponseUsage( + global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? inputTokenDetails, + int? inputTokens, + global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? outputTokenDetails, + int? outputTokens, + int? totalTokens) + { + this.InputTokenDetails = inputTokenDetails; + this.InputTokens = inputTokens; + this.OutputTokenDetails = outputTokenDetails; + this.OutputTokens = outputTokens; + this.TotalTokens = totalTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaResponseUsage() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetails.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetails.Json.g.cs new file mode 100644 index 00000000..106956dd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetails.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponseUsageInputTokenDetails + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails; + } + + /// + /// 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.RealtimeBetaResponseUsageInputTokenDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponseUsageInputTokenDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetails.g.cs new file mode 100644 index 00000000..b549103d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetails.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Details about the input tokens used in the Response. + /// + public sealed partial class RealtimeBetaResponseUsageInputTokenDetails + { + /// + /// The number of audio tokens used as input for the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_tokens")] + public int? AudioTokens { get; set; } + + /// + /// The number of cached tokens used as input for the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens")] + public int? CachedTokens { get; set; } + + /// + /// Details about the cached tokens used as input for the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens_details")] + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? CachedTokensDetails { get; set; } + + /// + /// The number of image tokens used as input for the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_tokens")] + public int? ImageTokens { get; set; } + + /// + /// The number of text tokens used as input for the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text_tokens")] + public int? TextTokens { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The number of audio tokens used as input for the Response. + /// + /// + /// The number of cached tokens used as input for the Response. + /// + /// + /// Details about the cached tokens used as input for the Response. + /// + /// + /// The number of image tokens used as input for the Response. + /// + /// + /// The number of text tokens used as input for the Response. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaResponseUsageInputTokenDetails( + int? audioTokens, + int? cachedTokens, + global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? cachedTokensDetails, + int? imageTokens, + int? textTokens) + { + this.AudioTokens = audioTokens; + this.CachedTokens = cachedTokens; + this.CachedTokensDetails = cachedTokensDetails; + this.ImageTokens = imageTokens; + this.TextTokens = textTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaResponseUsageInputTokenDetails() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails.Json.g.cs new file mode 100644 index 00000000..7743199b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails; + } + + /// + /// 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.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails.g.cs new file mode 100644 index 00000000..dc3a1792 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Details about the cached tokens used as input for the Response. + /// + public sealed partial class RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails + { + /// + /// The number of cached audio tokens used as input for the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_tokens")] + public int? AudioTokens { get; set; } + + /// + /// The number of cached image tokens used as input for the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_tokens")] + public int? ImageTokens { get; set; } + + /// + /// The number of cached text tokens used as input for the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text_tokens")] + public int? TextTokens { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The number of cached audio tokens used as input for the Response. + /// + /// + /// The number of cached image tokens used as input for the Response. + /// + /// + /// The number of cached text tokens used as input for the Response. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails( + int? audioTokens, + int? imageTokens, + int? textTokens) + { + this.AudioTokens = audioTokens; + this.ImageTokens = imageTokens; + this.TextTokens = textTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolParameters.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageOutputTokenDetails.Json.g.cs similarity index 83% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolParameters.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageOutputTokenDetails.Json.g.cs index 16d68ae6..6599b54a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolParameters.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageOutputTokenDetails.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateResponseToolParameters + public sealed partial class RealtimeBetaResponseUsageOutputTokenDetails { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolParameters? FromJson( + public static global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolParameters), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolParameters; + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateResponseToolParameters? FromJson( + public static global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateResponseToolParameters), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolParameters; + typeof(global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeBetaResponseUsageOutputTokenDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageOutputTokenDetails.g.cs new file mode 100644 index 00000000..ea0dc0a9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaResponseUsageOutputTokenDetails.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Details about the output tokens used in the Response. + /// + public sealed partial class RealtimeBetaResponseUsageOutputTokenDetails + { + /// + /// The number of audio tokens used in the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_tokens")] + public int? AudioTokens { get; set; } + + /// + /// The number of text tokens used in the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text_tokens")] + public int? TextTokens { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The number of audio tokens used in the Response. + /// + /// + /// The number of text tokens used in the Response. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaResponseUsageOutputTokenDetails( + int? audioTokens, + int? textTokens) + { + this.AudioTokens = audioTokens; + this.TextTokens = textTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaResponseUsageOutputTokenDetails() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreated.Json.g.cs new file mode 100644 index 00000000..87797f35 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemCreated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemCreated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemCreated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreated.g.cs new file mode 100644 index 00000000..bf206771 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreated.g.cs @@ -0,0 +1,101 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a conversation item is created. There are several scenarios that produce this event:
+ /// - The server is generating a Response, which if successful will produce
+ /// either one or two Items, which will be of type `message`
+ /// (role `assistant`) or type `function_call`.
+ /// - The input audio buffer has been committed, either by the client or the
+ /// server (in `server_vad` mode). The server will take the content of the
+ /// input audio buffer and add it to a new user message Item.
+ /// - The client has sent a `conversation.item.create` event to add a new Item
+ /// to the Conversation. + ///
+ public sealed partial class RealtimeBetaServerEventConversationItemCreated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("item")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeConversationItem Item { get; set; } + + /// + /// The ID of the preceding item in the Conversation context, allows the
+ /// client to understand the order of the conversation. Can be `null` if the
+ /// item has no predecessor. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("previous_item_id")] + public string? PreviousItemId { get; set; } + + /// + /// The event type, must be `conversation.item.created`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemCreatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + /// + /// + /// The ID of the preceding item in the Conversation context, allows the
+ /// client to understand the order of the conversation. Can be `null` if the
+ /// item has no predecessor. + /// + /// + /// The event type, must be `conversation.item.created`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemCreated( + string eventId, + global::tryAGI.OpenAI.RealtimeConversationItem item, + string? previousItemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); + this.PreviousItemId = previousItemId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemCreated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreatedType.g.cs new file mode 100644 index 00000000..04da0054 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemCreatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.created`. + /// + public enum RealtimeBetaServerEventConversationItemCreatedType + { + /// + /// + /// + ConversationItemCreated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventConversationItemCreatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventConversationItemCreatedType value) + { + return value switch + { + RealtimeBetaServerEventConversationItemCreatedType.ConversationItemCreated => "conversation.item.created", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventConversationItemCreatedType? ToEnum(string value) + { + return value switch + { + "conversation.item.created" => RealtimeBetaServerEventConversationItemCreatedType.ConversationItemCreated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeleted.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeleted.Json.g.cs new file mode 100644 index 00000000..3557411d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeleted.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemDeleted + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemDeleted? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemDeleted), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeleted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeleted.g.cs new file mode 100644 index 00000000..9eb69e16 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeleted.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an item in the conversation is deleted by the client with a
+ /// `conversation.item.delete` event. This event is used to synchronize the
+ /// server's understanding of the conversation history with the client's view. + ///
+ public sealed partial class RealtimeBetaServerEventConversationItemDeleted + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item that was deleted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `conversation.item.deleted`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemDeletedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item that was deleted. + /// + /// + /// The event type, must be `conversation.item.deleted`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemDeleted( + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemDeleted() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeletedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeletedType.g.cs new file mode 100644 index 00000000..74dfbafe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemDeletedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.deleted`. + /// + public enum RealtimeBetaServerEventConversationItemDeletedType + { + /// + /// + /// + ConversationItemDeleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventConversationItemDeletedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventConversationItemDeletedType value) + { + return value switch + { + RealtimeBetaServerEventConversationItemDeletedType.ConversationItemDeleted => "conversation.item.deleted", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventConversationItemDeletedType? ToEnum(string value) + { + return value switch + { + "conversation.item.deleted" => RealtimeBetaServerEventConversationItemDeletedType.ConversationItemDeleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted.Json.g.cs new file mode 100644 index 00000000..9df9bc95 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted.g.cs new file mode 100644 index 00000000..eb038518 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted.g.cs @@ -0,0 +1,130 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// This event is the output of audio transcription for user audio written to the
+ /// user audio buffer. Transcription begins when the input audio buffer is
+ /// committed by the client or server (in `server_vad` mode). Transcription runs
+ /// asynchronously with Response creation, so this event may come before or after
+ /// the Response events.
+ /// Realtime API models accept audio natively, and thus input transcription is a
+ /// separate process run on a separate ASR (Automatic Speech Recognition) model.
+ /// The transcript may diverge somewhat from the model's interpretation, and
+ /// should be treated as a rough guide. + ///
+ public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted + { + /// + /// The index of the content part containing the audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the user message item containing the audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The log probabilities of the transcription. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logprobs")] + public global::System.Collections.Generic.IList? Logprobs { get; set; } + + /// + /// The transcribed text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Transcript { get; set; } + + /// + /// The event type, must be
+ /// `conversation.item.input_audio_transcription.completed`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType Type { get; set; } + + /// + /// Usage statistics for the transcription. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.AnyOf Usage { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part containing the audio. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the user message item containing the audio. + /// + /// + /// The log probabilities of the transcription. + /// + /// + /// The transcribed text. + /// + /// + /// The event type, must be
+ /// `conversation.item.input_audio_transcription.completed`. + /// + /// + /// Usage statistics for the transcription. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted( + int contentIndex, + string eventId, + string itemId, + string transcript, + global::tryAGI.OpenAI.AnyOf usage, + global::System.Collections.Generic.IList? logprobs, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType type) + { + this.ContentIndex = contentIndex; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Transcript = transcript ?? throw new global::System.ArgumentNullException(nameof(transcript)); + this.Usage = usage; + this.Logprobs = logprobs; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs new file mode 100644 index 00000000..2951a49b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be
+ /// `conversation.item.input_audio_transcription.completed`. + ///
+ public enum RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType + { + /// + /// + /// + ConversationItemInputAudioTranscriptionCompleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType value) + { + return value switch + { + RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.ConversationItemInputAudioTranscriptionCompleted => "conversation.item.input_audio_transcription.completed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? ToEnum(string value) + { + return value switch + { + "conversation.item.input_audio_transcription.completed" => RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType.ConversationItemInputAudioTranscriptionCompleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta.Json.g.cs new file mode 100644 index 00000000..bb34dafa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta.g.cs new file mode 100644 index 00000000..1ee0abf2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta.g.cs @@ -0,0 +1,103 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the text value of an input audio transcription content part is updated. + /// + public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + public int? ContentIndex { get; set; } + + /// + /// The text delta. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + public string? Delta { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The log probabilities of the transcription. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logprobs")] + public global::System.Collections.Generic.IList? Logprobs { get; set; } + + /// + /// The event type, must be `conversation.item.input_audio_transcription.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// The text delta. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item. + /// + /// + /// The log probabilities of the transcription. + /// + /// + /// The event type, must be `conversation.item.input_audio_transcription.delta`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta( + string eventId, + string itemId, + int? contentIndex, + string? delta, + global::System.Collections.Generic.IList? logprobs, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.ContentIndex = contentIndex; + this.Delta = delta; + this.Logprobs = logprobs; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.g.cs new file mode 100644 index 00000000..f581559a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.input_audio_transcription.delta`. + /// + public enum RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType + { + /// + /// + /// + ConversationItemInputAudioTranscriptionDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType value) + { + return value switch + { + RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.ConversationItemInputAudioTranscriptionDelta => "conversation.item.input_audio_transcription.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? ToEnum(string value) + { + return value switch + { + "conversation.item.input_audio_transcription.delta" => RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType.ConversationItemInputAudioTranscriptionDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed.Json.g.cs new file mode 100644 index 00000000..8e1e7605 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed.g.cs new file mode 100644 index 00000000..008a52fe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed.g.cs @@ -0,0 +1,98 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when input audio transcription is configured, and a transcription
+ /// request for a user message failed. These events are separate from other
+ /// `error` events so that the client can identify the related Item. + ///
+ public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed + { + /// + /// The index of the content part containing the audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// Details of the transcription error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError Error { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the user message item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be
+ /// `conversation.item.input_audio_transcription.failed`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part containing the audio. + /// + /// + /// Details of the transcription error. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the user message item. + /// + /// + /// The event type, must be
+ /// `conversation.item.input_audio_transcription.failed`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed( + int contentIndex, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError error, + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType type) + { + this.ContentIndex = contentIndex; + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError.Json.g.cs new file mode 100644 index 00000000..ad1b62fb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError.g.cs new file mode 100644 index 00000000..a7d6dca6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError.g.cs @@ -0,0 +1,78 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Details of the transcription error. + /// + public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError + { + /// + /// Error code, if any. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + + /// + /// A human-readable error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Parameter related to the error, if any. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("param")] + public string? Param { get; set; } + + /// + /// The type of error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Error code, if any. + /// + /// + /// A human-readable error message. + /// + /// + /// Parameter related to the error, if any. + /// + /// + /// The type of error. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError( + string? code, + string? message, + string? param, + string? type) + { + this.Code = code; + this.Message = message; + this.Param = param; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.g.cs new file mode 100644 index 00000000..cbb83a39 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be
+ /// `conversation.item.input_audio_transcription.failed`. + ///
+ public enum RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType + { + /// + /// + /// + ConversationItemInputAudioTranscriptionFailed, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType value) + { + return value switch + { + RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.ConversationItemInputAudioTranscriptionFailed => "conversation.item.input_audio_transcription.failed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? ToEnum(string value) + { + return value switch + { + "conversation.item.input_audio_transcription.failed" => RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType.ConversationItemInputAudioTranscriptionFailed, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment.Json.g.cs new file mode 100644 index 00000000..ccbd3516 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment.g.cs new file mode 100644 index 00000000..ec91823f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment.g.cs @@ -0,0 +1,142 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an input audio transcription segment is identified for an item. + /// + public sealed partial class RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment + { + /// + /// The index of the input audio content part within the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// End time of the segment in seconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("end")] + [global::System.Text.Json.Serialization.JsonRequired] + public required float End { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The segment identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// The ID of the item containing the input audio content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The detected speaker label for this segment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Speaker { get; set; } + + /// + /// Start time of the segment in seconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start")] + [global::System.Text.Json.Serialization.JsonRequired] + public required float Start { get; set; } + + /// + /// The text for this segment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// The event type, must be `conversation.item.input_audio_transcription.segment`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the input audio content part within the item. + /// + /// + /// End time of the segment in seconds. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The segment identifier. + /// + /// + /// The ID of the item containing the input audio content. + /// + /// + /// The detected speaker label for this segment. + /// + /// + /// Start time of the segment in seconds. + /// + /// + /// The text for this segment. + /// + /// + /// The event type, must be `conversation.item.input_audio_transcription.segment`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment( + int contentIndex, + float end, + string eventId, + string id, + string itemId, + string speaker, + float start, + string text, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType type) + { + this.ContentIndex = contentIndex; + this.End = end; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Speaker = speaker ?? throw new global::System.ArgumentNullException(nameof(speaker)); + this.Start = start; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.g.cs new file mode 100644 index 00000000..ce242251 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.input_audio_transcription.segment`. + /// + public enum RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType + { + /// + /// + /// + ConversationItemInputAudioTranscriptionSegment, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType value) + { + return value switch + { + RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.ConversationItemInputAudioTranscriptionSegment => "conversation.item.input_audio_transcription.segment", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? ToEnum(string value) + { + return value switch + { + "conversation.item.input_audio_transcription.segment" => RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType.ConversationItemInputAudioTranscriptionSegment, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrieved.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrieved.Json.g.cs new file mode 100644 index 00000000..e5d199a5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrieved.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemRetrieved + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemRetrieved? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemRetrieved), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrieved.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrieved.g.cs new file mode 100644 index 00000000..32408262 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrieved.g.cs @@ -0,0 +1,78 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a conversation item is retrieved with `conversation.item.retrieve`. + /// + public sealed partial class RealtimeBetaServerEventConversationItemRetrieved + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("item")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeConversationItem Item { get; set; } + + /// + /// The event type, must be `conversation.item.retrieved`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemRetrievedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + /// + /// + /// The event type, must be `conversation.item.retrieved`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemRetrieved( + string eventId, + global::tryAGI.OpenAI.RealtimeConversationItem item, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemRetrieved() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrievedType.g.cs similarity index 50% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrievedType.g.cs index 8213d035..459a913a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemRetrievedType.g.cs @@ -4,40 +4,40 @@ namespace tryAGI.OpenAI { /// - /// The anchor point for the ephemeral token expiration. Only `created_at` is currently supported. + /// The event type, must be `conversation.item.retrieved`. /// - public enum RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor + public enum RealtimeBetaServerEventConversationItemRetrievedType { /// /// /// - CreatedAt, + ConversationItemRetrieved, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorExtensions + public static class RealtimeBetaServerEventConversationItemRetrievedTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor value) + public static string ToValueString(this RealtimeBetaServerEventConversationItemRetrievedType value) { return value switch { - RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.CreatedAt => "created_at", + RealtimeBetaServerEventConversationItemRetrievedType.ConversationItemRetrieved => "conversation.item.retrieved", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor? ToEnum(string value) + public static RealtimeBetaServerEventConversationItemRetrievedType? ToEnum(string value) { return value switch { - "created_at" => RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor.CreatedAt, + "conversation.item.retrieved" => RealtimeBetaServerEventConversationItemRetrievedType.ConversationItemRetrieved, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncated.Json.g.cs new file mode 100644 index 00000000..bced95f5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventConversationItemTruncated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated; + } + + /// + /// 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.RealtimeBetaServerEventConversationItemTruncated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventConversationItemTruncated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncated.g.cs new file mode 100644 index 00000000..c1cdd26a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncated.g.cs @@ -0,0 +1,98 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an earlier assistant audio message item is truncated by the
+ /// client with a `conversation.item.truncate` event. This event is used to
+ /// synchronize the server's understanding of the audio with the client's playback.
+ /// This action will truncate the audio and remove the server-side text transcript
+ /// to ensure there is no text in the context that hasn't been heard by the user. + ///
+ public sealed partial class RealtimeBetaServerEventConversationItemTruncated + { + /// + /// The duration up to which the audio was truncated, in milliseconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_end_ms")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int AudioEndMs { get; set; } + + /// + /// The index of the content part that was truncated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the assistant message item that was truncated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `conversation.item.truncated`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventConversationItemTruncatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The duration up to which the audio was truncated, in milliseconds. + /// + /// + /// The index of the content part that was truncated. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the assistant message item that was truncated. + /// + /// + /// The event type, must be `conversation.item.truncated`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventConversationItemTruncated( + int audioEndMs, + int contentIndex, + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType type) + { + this.AudioEndMs = audioEndMs; + this.ContentIndex = contentIndex; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventConversationItemTruncated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncatedType.g.cs new file mode 100644 index 00000000..6351c4a4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventConversationItemTruncatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `conversation.item.truncated`. + /// + public enum RealtimeBetaServerEventConversationItemTruncatedType + { + /// + /// + /// + ConversationItemTruncated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventConversationItemTruncatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventConversationItemTruncatedType value) + { + return value switch + { + RealtimeBetaServerEventConversationItemTruncatedType.ConversationItemTruncated => "conversation.item.truncated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventConversationItemTruncatedType? ToEnum(string value) + { + return value switch + { + "conversation.item.truncated" => RealtimeBetaServerEventConversationItemTruncatedType.ConversationItemTruncated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventError.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventError.Json.g.cs new file mode 100644 index 00000000..853cb99d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventError + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventError), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventError; + } + + /// + /// 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.RealtimeBetaServerEventError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventError), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventError; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventError.g.cs new file mode 100644 index 00000000..bb5d16de --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventError.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an error occurs, which could be a client problem or a server
+ /// problem. Most errors are recoverable and the session will stay open, we
+ /// recommend to implementors to monitor and log error messages by default. + ///
+ public sealed partial class RealtimeBetaServerEventError + { + /// + /// Details of the error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError Error { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The event type, must be `error`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventErrorTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Details of the error. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The event type, must be `error`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventError( + global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError error, + string eventId, + global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType type) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventError() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorError.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorError.Json.g.cs new file mode 100644 index 00000000..14120058 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventErrorError + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError; + } + + /// + /// 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.RealtimeBetaServerEventErrorError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventErrorError), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorError.g.cs new file mode 100644 index 00000000..9e84a211 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorError.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Details of the error. + /// + public sealed partial class RealtimeBetaServerEventErrorError + { + /// + /// Error code, if any. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + + /// + /// The event_id of the client event that caused the error, if applicable. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + + /// + /// A human-readable error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// Parameter related to the error, if any. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("param")] + public string? Param { get; set; } + + /// + /// The type of error (e.g., "invalid_request_error", "server_error"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Error code, if any. + /// + /// + /// The event_id of the client event that caused the error, if applicable. + /// + /// + /// A human-readable error message. + /// + /// + /// Parameter related to the error, if any. + /// + /// + /// The type of error (e.g., "invalid_request_error", "server_error"). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventErrorError( + string message, + string type, + string? code, + string? eventId, + string? param) + { + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Code = code; + this.EventId = eventId; + this.Param = param; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventErrorError() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorType.g.cs new file mode 100644 index 00000000..e9f03601 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventErrorType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `error`. + /// + public enum RealtimeBetaServerEventErrorType + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventErrorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventErrorType value) + { + return value switch + { + RealtimeBetaServerEventErrorType.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventErrorType? ToEnum(string value) + { + return value switch + { + "error" => RealtimeBetaServerEventErrorType.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCleared.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCleared.Json.g.cs new file mode 100644 index 00000000..b8142737 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCleared.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventInputAudioBufferCleared + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared; + } + + /// + /// 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.RealtimeBetaServerEventInputAudioBufferCleared? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventInputAudioBufferCleared), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCleared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCleared.g.cs new file mode 100644 index 00000000..03fe30b4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCleared.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the input audio buffer is cleared by the client with a
+ /// `input_audio_buffer.clear` event. + ///
+ public sealed partial class RealtimeBetaServerEventInputAudioBufferCleared + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The event type, must be `input_audio_buffer.cleared`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferClearedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The event type, must be `input_audio_buffer.cleared`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventInputAudioBufferCleared( + string eventId, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventInputAudioBufferCleared() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferClearedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferClearedType.g.cs new file mode 100644 index 00000000..4a0ba196 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferClearedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `input_audio_buffer.cleared`. + /// + public enum RealtimeBetaServerEventInputAudioBufferClearedType + { + /// + /// + /// + InputAudioBufferCleared, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventInputAudioBufferClearedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventInputAudioBufferClearedType value) + { + return value switch + { + RealtimeBetaServerEventInputAudioBufferClearedType.InputAudioBufferCleared => "input_audio_buffer.cleared", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventInputAudioBufferClearedType? ToEnum(string value) + { + return value switch + { + "input_audio_buffer.cleared" => RealtimeBetaServerEventInputAudioBufferClearedType.InputAudioBufferCleared, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommitted.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommitted.Json.g.cs new file mode 100644 index 00000000..1394b1b4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommitted.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventInputAudioBufferCommitted + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted; + } + + /// + /// 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.RealtimeBetaServerEventInputAudioBufferCommitted? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventInputAudioBufferCommitted), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommitted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommitted.g.cs new file mode 100644 index 00000000..db3ecdad --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommitted.g.cs @@ -0,0 +1,86 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an input audio buffer is committed, either by the client or
+ /// automatically in server VAD mode. The `item_id` property is the ID of the user
+ /// message item that will be created, thus a `conversation.item.created` event
+ /// will also be sent to the client. + ///
+ public sealed partial class RealtimeBetaServerEventInputAudioBufferCommitted + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the user message item that will be created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The ID of the preceding item after which the new item will be inserted.
+ /// Can be `null` if the item has no predecessor. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("previous_item_id")] + public string? PreviousItemId { get; set; } + + /// + /// The event type, must be `input_audio_buffer.committed`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferCommittedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the user message item that will be created. + /// + /// + /// The ID of the preceding item after which the new item will be inserted.
+ /// Can be `null` if the item has no predecessor. + /// + /// + /// The event type, must be `input_audio_buffer.committed`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventInputAudioBufferCommitted( + string eventId, + string itemId, + string? previousItemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.PreviousItemId = previousItemId; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventInputAudioBufferCommitted() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommittedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommittedType.g.cs new file mode 100644 index 00000000..ee45002c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferCommittedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `input_audio_buffer.committed`. + /// + public enum RealtimeBetaServerEventInputAudioBufferCommittedType + { + /// + /// + /// + InputAudioBufferCommitted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventInputAudioBufferCommittedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventInputAudioBufferCommittedType value) + { + return value switch + { + RealtimeBetaServerEventInputAudioBufferCommittedType.InputAudioBufferCommitted => "input_audio_buffer.committed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventInputAudioBufferCommittedType? ToEnum(string value) + { + return value switch + { + "input_audio_buffer.committed" => RealtimeBetaServerEventInputAudioBufferCommittedType.InputAudioBufferCommitted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStarted.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStarted.Json.g.cs new file mode 100644 index 00000000..ba300a16 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStarted.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventInputAudioBufferSpeechStarted + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted; + } + + /// + /// 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.RealtimeBetaServerEventInputAudioBufferSpeechStarted? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventInputAudioBufferSpeechStarted), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStarted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStarted.g.cs new file mode 100644 index 00000000..17f2fcb2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStarted.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Sent by the server when in `server_vad` mode to indicate that speech has been
+ /// detected in the audio buffer. This can happen any time audio is added to the
+ /// buffer (unless speech is already detected). The client may want to use this
+ /// event to interrupt audio playback or provide visual feedback to the user.
+ /// The client should expect to receive a `input_audio_buffer.speech_stopped` event
+ /// when speech stops. The `item_id` property is the ID of the user message item
+ /// that will be created when speech stops and will also be included in the
+ /// `input_audio_buffer.speech_stopped` event (unless the client manually commits
+ /// the audio buffer during VAD activation). + ///
+ public sealed partial class RealtimeBetaServerEventInputAudioBufferSpeechStarted + { + /// + /// Milliseconds from the start of all audio written to the buffer during the
+ /// session when speech was first detected. This will correspond to the
+ /// beginning of audio sent to the model, and thus includes the
+ /// `prefix_padding_ms` configured in the Session. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("audio_start_ms")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int AudioStartMs { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the user message item that will be created when speech stops. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `input_audio_buffer.speech_started`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Milliseconds from the start of all audio written to the buffer during the
+ /// session when speech was first detected. This will correspond to the
+ /// beginning of audio sent to the model, and thus includes the
+ /// `prefix_padding_ms` configured in the Session. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the user message item that will be created when speech stops. + /// + /// + /// The event type, must be `input_audio_buffer.speech_started`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventInputAudioBufferSpeechStarted( + int audioStartMs, + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType type) + { + this.AudioStartMs = audioStartMs; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventInputAudioBufferSpeechStarted() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStartedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStartedType.g.cs new file mode 100644 index 00000000..ccf152ad --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStartedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `input_audio_buffer.speech_started`. + /// + public enum RealtimeBetaServerEventInputAudioBufferSpeechStartedType + { + /// + /// + /// + InputAudioBufferSpeechStarted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventInputAudioBufferSpeechStartedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventInputAudioBufferSpeechStartedType value) + { + return value switch + { + RealtimeBetaServerEventInputAudioBufferSpeechStartedType.InputAudioBufferSpeechStarted => "input_audio_buffer.speech_started", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventInputAudioBufferSpeechStartedType? ToEnum(string value) + { + return value switch + { + "input_audio_buffer.speech_started" => RealtimeBetaServerEventInputAudioBufferSpeechStartedType.InputAudioBufferSpeechStarted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStopped.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStopped.Json.g.cs new file mode 100644 index 00000000..8a1fc896 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStopped.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventInputAudioBufferSpeechStopped + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped; + } + + /// + /// 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.RealtimeBetaServerEventInputAudioBufferSpeechStopped? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventInputAudioBufferSpeechStopped), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStopped.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStopped.g.cs new file mode 100644 index 00000000..a46993c6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStopped.g.cs @@ -0,0 +1,88 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned in `server_vad` mode when the server detects the end of speech in
+ /// the audio buffer. The server will also send an `conversation.item.created`
+ /// event with the user message item that is created from the audio buffer. + ///
+ public sealed partial class RealtimeBetaServerEventInputAudioBufferSpeechStopped + { + /// + /// Milliseconds since the session started when speech stopped. This will
+ /// correspond to the end of audio sent to the model, and thus includes the
+ /// `min_silence_duration_ms` configured in the Session. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("audio_end_ms")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int AudioEndMs { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the user message item that will be created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `input_audio_buffer.speech_stopped`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Milliseconds since the session started when speech stopped. This will
+ /// correspond to the end of audio sent to the model, and thus includes the
+ /// `min_silence_duration_ms` configured in the Session. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the user message item that will be created. + /// + /// + /// The event type, must be `input_audio_buffer.speech_stopped`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventInputAudioBufferSpeechStopped( + int audioEndMs, + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType type) + { + this.AudioEndMs = audioEndMs; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventInputAudioBufferSpeechStopped() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.g.cs new file mode 100644 index 00000000..42c062f7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `input_audio_buffer.speech_stopped`. + /// + public enum RealtimeBetaServerEventInputAudioBufferSpeechStoppedType + { + /// + /// + /// + InputAudioBufferSpeechStopped, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventInputAudioBufferSpeechStoppedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventInputAudioBufferSpeechStoppedType value) + { + return value switch + { + RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.InputAudioBufferSpeechStopped => "input_audio_buffer.speech_stopped", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? ToEnum(string value) + { + return value switch + { + "input_audio_buffer.speech_stopped" => RealtimeBetaServerEventInputAudioBufferSpeechStoppedType.InputAudioBufferSpeechStopped, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered.Json.g.cs new file mode 100644 index 00000000..adb7a3ad --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventInputAudioBufferTimeoutTriggered + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered; + } + + /// + /// 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.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered.g.cs new file mode 100644 index 00000000..2ea3ab92 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggered.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the server VAD timeout is triggered for the input audio buffer. + /// + public sealed partial class RealtimeBetaServerEventInputAudioBufferTimeoutTriggered + { + /// + /// Millisecond offset where speech ended within the buffered audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_end_ms")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int AudioEndMs { get; set; } + + /// + /// Millisecond offset where speech started within the buffered audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_start_ms")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int AudioStartMs { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item associated with this segment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `input_audio_buffer.timeout_triggered`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Millisecond offset where speech ended within the buffered audio. + /// + /// + /// Millisecond offset where speech started within the buffered audio. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item associated with this segment. + /// + /// + /// The event type, must be `input_audio_buffer.timeout_triggered`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventInputAudioBufferTimeoutTriggered( + int audioEndMs, + int audioStartMs, + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType type) + { + this.AudioEndMs = audioEndMs; + this.AudioStartMs = audioStartMs; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventInputAudioBufferTimeoutTriggered() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.g.cs new file mode 100644 index 00000000..205cfcce --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `input_audio_buffer.timeout_triggered`. + /// + public enum RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType + { + /// + /// + /// + InputAudioBufferTimeoutTriggered, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType value) + { + return value switch + { + RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.InputAudioBufferTimeoutTriggered => "input_audio_buffer.timeout_triggered", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType? ToEnum(string value) + { + return value switch + { + "input_audio_buffer.timeout_triggered" => RealtimeBetaServerEventInputAudioBufferTimeoutTriggeredType.InputAudioBufferTimeoutTriggered, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompleted.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompleted.Json.g.cs new file mode 100644 index 00000000..3df020a8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompleted.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventMCPListToolsCompleted + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted; + } + + /// + /// 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.RealtimeBetaServerEventMCPListToolsCompleted? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventMCPListToolsCompleted), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompleted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompleted.g.cs new file mode 100644 index 00000000..cde19fa0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompleted.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when listing MCP tools has completed for an item. + /// + public sealed partial class RealtimeBetaServerEventMCPListToolsCompleted + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the MCP list tools item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `mcp_list_tools.completed`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsCompletedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the MCP list tools item. + /// + /// + /// The event type, must be `mcp_list_tools.completed`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventMCPListToolsCompleted( + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventMCPListToolsCompleted() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompletedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompletedType.g.cs new file mode 100644 index 00000000..fd84eb59 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsCompletedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `mcp_list_tools.completed`. + /// + public enum RealtimeBetaServerEventMCPListToolsCompletedType + { + /// + /// + /// + McpListToolsCompleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventMCPListToolsCompletedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventMCPListToolsCompletedType value) + { + return value switch + { + RealtimeBetaServerEventMCPListToolsCompletedType.McpListToolsCompleted => "mcp_list_tools.completed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventMCPListToolsCompletedType? ToEnum(string value) + { + return value switch + { + "mcp_list_tools.completed" => RealtimeBetaServerEventMCPListToolsCompletedType.McpListToolsCompleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailed.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailed.Json.g.cs new file mode 100644 index 00000000..7c25b625 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailed.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventMCPListToolsFailed + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed; + } + + /// + /// 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.RealtimeBetaServerEventMCPListToolsFailed? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventMCPListToolsFailed), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailed.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailed.g.cs new file mode 100644 index 00000000..f0c6b64c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailed.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when listing MCP tools has failed for an item. + /// + public sealed partial class RealtimeBetaServerEventMCPListToolsFailed + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the MCP list tools item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `mcp_list_tools.failed`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsFailedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the MCP list tools item. + /// + /// + /// The event type, must be `mcp_list_tools.failed`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventMCPListToolsFailed( + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventMCPListToolsFailed() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailedType.g.cs new file mode 100644 index 00000000..aa1c31e3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsFailedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `mcp_list_tools.failed`. + /// + public enum RealtimeBetaServerEventMCPListToolsFailedType + { + /// + /// + /// + McpListToolsFailed, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventMCPListToolsFailedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventMCPListToolsFailedType value) + { + return value switch + { + RealtimeBetaServerEventMCPListToolsFailedType.McpListToolsFailed => "mcp_list_tools.failed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventMCPListToolsFailedType? ToEnum(string value) + { + return value switch + { + "mcp_list_tools.failed" => RealtimeBetaServerEventMCPListToolsFailedType.McpListToolsFailed, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgress.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgress.Json.g.cs new file mode 100644 index 00000000..d73b5b68 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgress.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventMCPListToolsInProgress + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress; + } + + /// + /// 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.RealtimeBetaServerEventMCPListToolsInProgress? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventMCPListToolsInProgress), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgress.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgress.g.cs new file mode 100644 index 00000000..92919c68 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgress.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when listing MCP tools is in progress for an item. + /// + public sealed partial class RealtimeBetaServerEventMCPListToolsInProgress + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the MCP list tools item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The event type, must be `mcp_list_tools.in_progress`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventMCPListToolsInProgressTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the MCP list tools item. + /// + /// + /// The event type, must be `mcp_list_tools.in_progress`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventMCPListToolsInProgress( + string eventId, + string itemId, + global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventMCPListToolsInProgress() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgressType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgressType.g.cs new file mode 100644 index 00000000..8bdb05ef --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventMCPListToolsInProgressType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `mcp_list_tools.in_progress`. + /// + public enum RealtimeBetaServerEventMCPListToolsInProgressType + { + /// + /// + /// + McpListToolsInProgress, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventMCPListToolsInProgressTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventMCPListToolsInProgressType value) + { + return value switch + { + RealtimeBetaServerEventMCPListToolsInProgressType.McpListToolsInProgress => "mcp_list_tools.in_progress", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventMCPListToolsInProgressType? ToEnum(string value) + { + return value switch + { + "mcp_list_tools.in_progress" => RealtimeBetaServerEventMCPListToolsInProgressType.McpListToolsInProgress, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdated.Json.g.cs new file mode 100644 index 00000000..a59ec57d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventRateLimitsUpdated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated; + } + + /// + /// 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.RealtimeBetaServerEventRateLimitsUpdated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventRateLimitsUpdated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdated.g.cs new file mode 100644 index 00000000..9457df6f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdated.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Emitted at the beginning of a Response to indicate the updated rate limits.
+ /// When a Response is created some tokens will be "reserved" for the output
+ /// tokens, the rate limits shown here reflect that reservation, which is then
+ /// adjusted accordingly once the Response is completed. + ///
+ public sealed partial class RealtimeBetaServerEventRateLimitsUpdated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// List of rate limit information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rate_limits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList RateLimits { get; set; } + + /// + /// The event type, must be `rate_limits.updated`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// List of rate limit information. + /// + /// + /// The event type, must be `rate_limits.updated`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventRateLimitsUpdated( + string eventId, + global::System.Collections.Generic.IList rateLimits, + global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.RateLimits = rateLimits ?? throw new global::System.ArgumentNullException(nameof(rateLimits)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventRateLimitsUpdated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimit.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimit.Json.g.cs new file mode 100644 index 00000000..7b952837 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimit.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventRateLimitsUpdatedRateLimit + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit; + } + + /// + /// 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.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventRateLimitsUpdatedRateLimit), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimit.g.cs new file mode 100644 index 00000000..eb922dd4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimit.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeBetaServerEventRateLimitsUpdatedRateLimit + { + /// + /// The maximum allowed value for the rate limit. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + + /// + /// The name of the rate limit (`requests`, `tokens`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Name { get; set; } + + /// + /// The remaining value before the limit is reached. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("remaining")] + public int? Remaining { get; set; } + + /// + /// Seconds until the rate limit resets. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reset_seconds")] + public double? ResetSeconds { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The maximum allowed value for the rate limit. + /// + /// + /// The name of the rate limit (`requests`, `tokens`). + /// + /// + /// The remaining value before the limit is reached. + /// + /// + /// Seconds until the rate limit resets. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventRateLimitsUpdatedRateLimit( + int? limit, + global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? name, + int? remaining, + double? resetSeconds) + { + this.Limit = limit; + this.Name = name; + this.Remaining = remaining; + this.ResetSeconds = resetSeconds; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventRateLimitsUpdatedRateLimit() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.g.cs new file mode 100644 index 00000000..2f4406ca --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The name of the rate limit (`requests`, `tokens`). + /// + public enum RealtimeBetaServerEventRateLimitsUpdatedRateLimitName + { + /// + /// + /// + Requests, + /// + /// + /// + Tokens, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventRateLimitsUpdatedRateLimitNameExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventRateLimitsUpdatedRateLimitName value) + { + return value switch + { + RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.Requests => "requests", + RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.Tokens => "tokens", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? ToEnum(string value) + { + return value switch + { + "requests" => RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.Requests, + "tokens" => RealtimeBetaServerEventRateLimitsUpdatedRateLimitName.Tokens, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedType.g.cs new file mode 100644 index 00000000..d6e2c582 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventRateLimitsUpdatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `rate_limits.updated`. + /// + public enum RealtimeBetaServerEventRateLimitsUpdatedType + { + /// + /// + /// + RateLimitsUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventRateLimitsUpdatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventRateLimitsUpdatedType value) + { + return value switch + { + RealtimeBetaServerEventRateLimitsUpdatedType.RateLimitsUpdated => "rate_limits.updated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventRateLimitsUpdatedType? ToEnum(string value) + { + return value switch + { + "rate_limits.updated" => RealtimeBetaServerEventRateLimitsUpdatedType.RateLimitsUpdated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDelta.Json.g.cs new file mode 100644 index 00000000..bf2f1aab --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseAudioDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta; + } + + /// + /// 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.RealtimeBetaServerEventResponseAudioDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseAudioDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDelta.g.cs new file mode 100644 index 00000000..937e1e34 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDelta.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the model-generated audio is updated. + /// + public sealed partial class RealtimeBetaServerEventResponseAudioDelta + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// Base64-encoded audio data delta. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Delta { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.output_audio.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// Base64-encoded audio data delta. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.output_audio.delta`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseAudioDelta( + int contentIndex, + string delta, + string eventId, + string itemId, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType type) + { + this.ContentIndex = contentIndex; + this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseAudioDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDeltaType.g.cs new file mode 100644 index 00000000..f9aa03d4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.output_audio.delta`. + /// + public enum RealtimeBetaServerEventResponseAudioDeltaType + { + /// + /// + /// + ResponseOutputAudioDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseAudioDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseAudioDeltaType value) + { + return value switch + { + RealtimeBetaServerEventResponseAudioDeltaType.ResponseOutputAudioDelta => "response.output_audio.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseAudioDeltaType? ToEnum(string value) + { + return value switch + { + "response.output_audio.delta" => RealtimeBetaServerEventResponseAudioDeltaType.ResponseOutputAudioDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDone.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDone.Json.g.cs new file mode 100644 index 00000000..2185915d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseAudioDone + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone; + } + + /// + /// 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.RealtimeBetaServerEventResponseAudioDone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseAudioDone), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDone.g.cs new file mode 100644 index 00000000..963edcfe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDone.g.cs @@ -0,0 +1,107 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the model-generated audio is done. Also emitted when a Response
+ /// is interrupted, incomplete, or cancelled. + ///
+ public sealed partial class RealtimeBetaServerEventResponseAudioDone + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.output_audio.done`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioDoneTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.output_audio.done`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseAudioDone( + int contentIndex, + string eventId, + string itemId, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType type) + { + this.ContentIndex = contentIndex; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseAudioDone() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDoneType.g.cs new file mode 100644 index 00000000..49a47ffa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioDoneType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.output_audio.done`. + /// + public enum RealtimeBetaServerEventResponseAudioDoneType + { + /// + /// + /// + ResponseOutputAudioDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseAudioDoneTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseAudioDoneType value) + { + return value switch + { + RealtimeBetaServerEventResponseAudioDoneType.ResponseOutputAudioDone => "response.output_audio.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseAudioDoneType? ToEnum(string value) + { + return value switch + { + "response.output_audio.done" => RealtimeBetaServerEventResponseAudioDoneType.ResponseOutputAudioDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDelta.Json.g.cs new file mode 100644 index 00000000..b46a9175 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseAudioTranscriptDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta; + } + + /// + /// 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.RealtimeBetaServerEventResponseAudioTranscriptDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseAudioTranscriptDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDelta.g.cs new file mode 100644 index 00000000..efea9260 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDelta.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the model-generated transcription of audio output is updated. + /// + public sealed partial class RealtimeBetaServerEventResponseAudioTranscriptDelta + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The transcript delta. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Delta { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.output_audio_transcript.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// The transcript delta. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.output_audio_transcript.delta`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseAudioTranscriptDelta( + int contentIndex, + string delta, + string eventId, + string itemId, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType type) + { + this.ContentIndex = contentIndex; + this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseAudioTranscriptDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDeltaType.g.cs new file mode 100644 index 00000000..d163736d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.output_audio_transcript.delta`. + /// + public enum RealtimeBetaServerEventResponseAudioTranscriptDeltaType + { + /// + /// + /// + ResponseOutputAudioTranscriptDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseAudioTranscriptDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseAudioTranscriptDeltaType value) + { + return value switch + { + RealtimeBetaServerEventResponseAudioTranscriptDeltaType.ResponseOutputAudioTranscriptDelta => "response.output_audio_transcript.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseAudioTranscriptDeltaType? ToEnum(string value) + { + return value switch + { + "response.output_audio_transcript.delta" => RealtimeBetaServerEventResponseAudioTranscriptDeltaType.ResponseOutputAudioTranscriptDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Parameters.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDone.Json.g.cs similarity index 82% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Parameters.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDone.Json.g.cs index c4edaf67..237fd2b1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Parameters.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDone.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestToolVariant1Parameters + public sealed partial class RealtimeBetaServerEventResponseAudioTranscriptDone { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Parameters? FromJson( + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Parameters), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Parameters; + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestToolVariant1Parameters? FromJson( + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestToolVariant1Parameters), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Parameters; + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeBetaServerEventResponseAudioTranscriptDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDone.g.cs new file mode 100644 index 00000000..63f6bc63 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDone.g.cs @@ -0,0 +1,120 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the model-generated transcription of audio output is done
+ /// streaming. Also emitted when a Response is interrupted, incomplete, or
+ /// cancelled. + ///
+ public sealed partial class RealtimeBetaServerEventResponseAudioTranscriptDone + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The final transcript of the audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Transcript { get; set; } + + /// + /// The event type, must be `response.output_audio_transcript.done`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseAudioTranscriptDoneTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The final transcript of the audio. + /// + /// + /// The event type, must be `response.output_audio_transcript.done`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseAudioTranscriptDone( + int contentIndex, + string eventId, + string itemId, + int outputIndex, + string responseId, + string transcript, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType type) + { + this.ContentIndex = contentIndex; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Transcript = transcript ?? throw new global::System.ArgumentNullException(nameof(transcript)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseAudioTranscriptDone() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDoneType.g.cs new file mode 100644 index 00000000..93eafefe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseAudioTranscriptDoneType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.output_audio_transcript.done`. + /// + public enum RealtimeBetaServerEventResponseAudioTranscriptDoneType + { + /// + /// + /// + ResponseOutputAudioTranscriptDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseAudioTranscriptDoneTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseAudioTranscriptDoneType value) + { + return value switch + { + RealtimeBetaServerEventResponseAudioTranscriptDoneType.ResponseOutputAudioTranscriptDone => "response.output_audio_transcript.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseAudioTranscriptDoneType? ToEnum(string value) + { + return value switch + { + "response.output_audio_transcript.done" => RealtimeBetaServerEventResponseAudioTranscriptDoneType.ResponseOutputAudioTranscriptDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAdded.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAdded.Json.g.cs new file mode 100644 index 00000000..22e9a440 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAdded.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseContentPartAdded + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded; + } + + /// + /// 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.RealtimeBetaServerEventResponseContentPartAdded? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseContentPartAdded), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAdded.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAdded.g.cs new file mode 100644 index 00000000..a11b3281 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAdded.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a new content part is added to an assistant message item during
+ /// response generation. + ///
+ public sealed partial class RealtimeBetaServerEventResponseContentPartAdded + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item to which the content part was added. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The content part that was added. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("part")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart Part { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.content_part.added`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item to which the content part was added. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The content part that was added. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.content_part.added`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseContentPartAdded( + int contentIndex, + string eventId, + string itemId, + int outputIndex, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart part, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType type) + { + this.ContentIndex = contentIndex; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.Part = part ?? throw new global::System.ArgumentNullException(nameof(part)); + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseContentPartAdded() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetection.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPart.Json.g.cs similarity index 82% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetection.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPart.Json.g.cs index 90f7b271..bd42cdbf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetection.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPart.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestAudioInputTurnDetection + public sealed partial class RealtimeBetaServerEventResponseContentPartAddedPart { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetection? FromJson( + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetection), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetection; + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestAudioInputTurnDetection? FromJson( + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestAudioInputTurnDetection), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetection; + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeBetaServerEventResponseContentPartAddedPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPart.g.cs new file mode 100644 index 00000000..45eb39c9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPart.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The content part that was added. + /// + public sealed partial class RealtimeBetaServerEventResponseContentPartAddedPart + { + /// + /// Base64-encoded audio data (if type is "audio"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public string? Audio { get; set; } + + /// + /// The text content (if type is "text"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + + /// + /// The transcript of the audio (if type is "audio"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] + public string? Transcript { get; set; } + + /// + /// The content type ("text", "audio"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartAddedPartTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Base64-encoded audio data (if type is "audio"). + /// + /// + /// The text content (if type is "text"). + /// + /// + /// The transcript of the audio (if type is "audio"). + /// + /// + /// The content type ("text", "audio"). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseContentPartAddedPart( + string? audio, + string? text, + string? transcript, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? type) + { + this.Audio = audio; + this.Text = text; + this.Transcript = transcript; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseContentPartAddedPart() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPartType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPartType.g.cs new file mode 100644 index 00000000..150218fd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedPartType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The content type ("text", "audio"). + /// + public enum RealtimeBetaServerEventResponseContentPartAddedPartType + { + /// + /// + /// + Text, + /// + /// + /// + Audio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseContentPartAddedPartTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseContentPartAddedPartType value) + { + return value switch + { + RealtimeBetaServerEventResponseContentPartAddedPartType.Text => "text", + RealtimeBetaServerEventResponseContentPartAddedPartType.Audio => "audio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseContentPartAddedPartType? ToEnum(string value) + { + return value switch + { + "text" => RealtimeBetaServerEventResponseContentPartAddedPartType.Text, + "audio" => RealtimeBetaServerEventResponseContentPartAddedPartType.Audio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedType.g.cs new file mode 100644 index 00000000..1c09711d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartAddedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.content_part.added`. + /// + public enum RealtimeBetaServerEventResponseContentPartAddedType + { + /// + /// + /// + ResponseContentPartAdded, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseContentPartAddedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseContentPartAddedType value) + { + return value switch + { + RealtimeBetaServerEventResponseContentPartAddedType.ResponseContentPartAdded => "response.content_part.added", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseContentPartAddedType? ToEnum(string value) + { + return value switch + { + "response.content_part.added" => RealtimeBetaServerEventResponseContentPartAddedType.ResponseContentPartAdded, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDone.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDone.Json.g.cs new file mode 100644 index 00000000..b92e1085 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseContentPartDone + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone; + } + + /// + /// 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.RealtimeBetaServerEventResponseContentPartDone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseContentPartDone), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDone.g.cs new file mode 100644 index 00000000..a73da409 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDone.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a content part is done streaming in an assistant message item.
+ /// Also emitted when a Response is interrupted, incomplete, or cancelled. + ///
+ public sealed partial class RealtimeBetaServerEventResponseContentPartDone + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The content part that is done. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("part")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart Part { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.content_part.done`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDoneTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The content part that is done. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.content_part.done`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseContentPartDone( + int contentIndex, + string eventId, + string itemId, + int outputIndex, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart part, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType type) + { + this.ContentIndex = contentIndex; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.Part = part ?? throw new global::System.ArgumentNullException(nameof(part)); + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseContentPartDone() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePart.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePart.Json.g.cs new file mode 100644 index 00000000..5fdb156a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePart.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseContentPartDonePart + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart; + } + + /// + /// 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.RealtimeBetaServerEventResponseContentPartDonePart? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseContentPartDonePart), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePart.g.cs new file mode 100644 index 00000000..2d1680c8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePart.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The content part that is done. + /// + public sealed partial class RealtimeBetaServerEventResponseContentPartDonePart + { + /// + /// Base64-encoded audio data (if type is "audio"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public string? Audio { get; set; } + + /// + /// The text content (if type is "text"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + + /// + /// The transcript of the audio (if type is "audio"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] + public string? Transcript { get; set; } + + /// + /// The content type ("text", "audio"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseContentPartDonePartTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Base64-encoded audio data (if type is "audio"). + /// + /// + /// The text content (if type is "text"). + /// + /// + /// The transcript of the audio (if type is "audio"). + /// + /// + /// The content type ("text", "audio"). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseContentPartDonePart( + string? audio, + string? text, + string? transcript, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? type) + { + this.Audio = audio; + this.Text = text; + this.Transcript = transcript; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseContentPartDonePart() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePartType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePartType.g.cs new file mode 100644 index 00000000..8ea66492 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDonePartType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The content type ("text", "audio"). + /// + public enum RealtimeBetaServerEventResponseContentPartDonePartType + { + /// + /// + /// + Text, + /// + /// + /// + Audio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseContentPartDonePartTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseContentPartDonePartType value) + { + return value switch + { + RealtimeBetaServerEventResponseContentPartDonePartType.Text => "text", + RealtimeBetaServerEventResponseContentPartDonePartType.Audio => "audio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseContentPartDonePartType? ToEnum(string value) + { + return value switch + { + "text" => RealtimeBetaServerEventResponseContentPartDonePartType.Text, + "audio" => RealtimeBetaServerEventResponseContentPartDonePartType.Audio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDoneType.g.cs new file mode 100644 index 00000000..0a43c14f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseContentPartDoneType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.content_part.done`. + /// + public enum RealtimeBetaServerEventResponseContentPartDoneType + { + /// + /// + /// + ResponseContentPartDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseContentPartDoneTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseContentPartDoneType value) + { + return value switch + { + RealtimeBetaServerEventResponseContentPartDoneType.ResponseContentPartDone => "response.content_part.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseContentPartDoneType? ToEnum(string value) + { + return value switch + { + "response.content_part.done" => RealtimeBetaServerEventResponseContentPartDoneType.ResponseContentPartDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreated.Json.g.cs new file mode 100644 index 00000000..f774ebd8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseCreated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated; + } + + /// + /// 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.RealtimeBetaServerEventResponseCreated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseCreated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreated.g.cs new file mode 100644 index 00000000..04aeb3a5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreated.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a new Response is created. The first event of response creation,
+ /// where the response is in an initial state of `in_progress`. + ///
+ public sealed partial class RealtimeBetaServerEventResponseCreated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The response resource. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeBetaResponse Response { get; set; } + + /// + /// The event type, must be `response.created`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseCreatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The response resource. + /// + /// + /// The event type, must be `response.created`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseCreated( + string eventId, + global::tryAGI.OpenAI.RealtimeBetaResponse response, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Response = response ?? throw new global::System.ArgumentNullException(nameof(response)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseCreated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreatedType.g.cs new file mode 100644 index 00000000..e96cbfe6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseCreatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.created`. + /// + public enum RealtimeBetaServerEventResponseCreatedType + { + /// + /// + /// + ResponseCreated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseCreatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseCreatedType value) + { + return value switch + { + RealtimeBetaServerEventResponseCreatedType.ResponseCreated => "response.created", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseCreatedType? ToEnum(string value) + { + return value switch + { + "response.created" => RealtimeBetaServerEventResponseCreatedType.ResponseCreated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDone.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDone.Json.g.cs new file mode 100644 index 00000000..f57bc77f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseDone + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone; + } + + /// + /// 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.RealtimeBetaServerEventResponseDone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseDone), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDone.g.cs new file mode 100644 index 00000000..ece3d350 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDone.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a Response is done streaming. Always emitted, no matter the
+ /// final state. The Response object included in the `response.done` event will
+ /// include all output Items in the Response but will omit the raw audio data. + ///
+ public sealed partial class RealtimeBetaServerEventResponseDone + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The response resource. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeBetaResponse Response { get; set; } + + /// + /// The event type, must be `response.done`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseDoneTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The response resource. + /// + /// + /// The event type, must be `response.done`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseDone( + string eventId, + global::tryAGI.OpenAI.RealtimeBetaResponse response, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Response = response ?? throw new global::System.ArgumentNullException(nameof(response)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseDone() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDoneType.g.cs new file mode 100644 index 00000000..14263a78 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseDoneType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.done`. + /// + public enum RealtimeBetaServerEventResponseDoneType + { + /// + /// + /// + ResponseDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseDoneTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseDoneType value) + { + return value switch + { + RealtimeBetaServerEventResponseDoneType.ResponseDone => "response.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseDoneType? ToEnum(string value) + { + return value switch + { + "response.done" => RealtimeBetaServerEventResponseDoneType.ResponseDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta.Json.g.cs new file mode 100644 index 00000000..d8a1f9dc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseFunctionCallArgumentsDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta; + } + + /// + /// 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta.g.cs new file mode 100644 index 00000000..b1fe98a0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the model-generated function call arguments are updated. + /// + public sealed partial class RealtimeBetaServerEventResponseFunctionCallArgumentsDelta + { + /// + /// The ID of the function call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CallId { get; set; } + + /// + /// The arguments delta as a JSON string. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Delta { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the function call item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.function_call_arguments.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The ID of the function call. + /// + /// + /// The arguments delta as a JSON string. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the function call item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.function_call_arguments.delta`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseFunctionCallArgumentsDelta( + string callId, + string delta, + string eventId, + string itemId, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType type) + { + this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseFunctionCallArgumentsDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.g.cs new file mode 100644 index 00000000..3f74f730 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.function_call_arguments.delta`. + /// + public enum RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType + { + /// + /// + /// + ResponseFunctionCallArgumentsDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType value) + { + return value switch + { + RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.ResponseFunctionCallArgumentsDelta => "response.function_call_arguments.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? ToEnum(string value) + { + return value switch + { + "response.function_call_arguments.delta" => RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType.ResponseFunctionCallArgumentsDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDone.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDone.Json.g.cs new file mode 100644 index 00000000..ad0639bf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseFunctionCallArgumentsDone + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone; + } + + /// + /// 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseFunctionCallArgumentsDone), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDone.g.cs new file mode 100644 index 00000000..f94aa1fd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDone.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the model-generated function call arguments are done streaming.
+ /// Also emitted when a Response is interrupted, incomplete, or cancelled. + ///
+ public sealed partial class RealtimeBetaServerEventResponseFunctionCallArgumentsDone + { + /// + /// The final arguments as a JSON string. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Arguments { get; set; } + + /// + /// The ID of the function call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CallId { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the function call item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.function_call_arguments.done`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The final arguments as a JSON string. + /// + /// + /// The ID of the function call. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the function call item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.function_call_arguments.done`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseFunctionCallArgumentsDone( + string arguments, + string callId, + string eventId, + string itemId, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType type) + { + this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseFunctionCallArgumentsDone() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.g.cs new file mode 100644 index 00000000..ab75a1cd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.function_call_arguments.done`. + /// + public enum RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType + { + /// + /// + /// + ResponseFunctionCallArgumentsDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseFunctionCallArgumentsDoneTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType value) + { + return value switch + { + RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.ResponseFunctionCallArgumentsDone => "response.function_call_arguments.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? ToEnum(string value) + { + return value switch + { + "response.function_call_arguments.done" => RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType.ResponseFunctionCallArgumentsDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDelta.Json.g.cs new file mode 100644 index 00000000..b3790909 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseMCPCallArgumentsDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta; + } + + /// + /// 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.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseMCPCallArgumentsDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDelta.g.cs new file mode 100644 index 00000000..44a2247c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDelta.g.cs @@ -0,0 +1,117 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when MCP tool call arguments are updated during response generation. + /// + public sealed partial class RealtimeBetaServerEventResponseMCPCallArgumentsDelta + { + /// + /// The JSON-encoded arguments delta. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Delta { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the MCP tool call item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// If present, indicates the delta text was obfuscated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("obfuscation")] + public string? Obfuscation { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.mcp_call_arguments.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The JSON-encoded arguments delta. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the MCP tool call item. + /// + /// + /// If present, indicates the delta text was obfuscated. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.mcp_call_arguments.delta`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseMCPCallArgumentsDelta( + string delta, + string eventId, + string itemId, + int outputIndex, + string responseId, + string? obfuscation, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType type) + { + this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Obfuscation = obfuscation; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseMCPCallArgumentsDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.g.cs new file mode 100644 index 00000000..a05e6139 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.mcp_call_arguments.delta`. + /// + public enum RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType + { + /// + /// + /// + ResponseMcpCallArgumentsDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseMCPCallArgumentsDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType value) + { + return value switch + { + RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.ResponseMcpCallArgumentsDelta => "response.mcp_call_arguments.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? ToEnum(string value) + { + return value switch + { + "response.mcp_call_arguments.delta" => RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType.ResponseMcpCallArgumentsDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDone.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDone.Json.g.cs new file mode 100644 index 00000000..91556b7e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseMCPCallArgumentsDone + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone; + } + + /// + /// 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.RealtimeBetaServerEventResponseMCPCallArgumentsDone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseMCPCallArgumentsDone), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDone.g.cs new file mode 100644 index 00000000..c3b2b3de --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDone.g.cs @@ -0,0 +1,106 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when MCP tool call arguments are finalized during response generation. + /// + public sealed partial class RealtimeBetaServerEventResponseMCPCallArgumentsDone + { + /// + /// The final JSON-encoded arguments string. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Arguments { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the MCP tool call item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.mcp_call_arguments.done`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The final JSON-encoded arguments string. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the MCP tool call item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.mcp_call_arguments.done`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseMCPCallArgumentsDone( + string arguments, + string eventId, + string itemId, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType type) + { + this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseMCPCallArgumentsDone() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.g.cs new file mode 100644 index 00000000..23d86247 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.mcp_call_arguments.done`. + /// + public enum RealtimeBetaServerEventResponseMCPCallArgumentsDoneType + { + /// + /// + /// + ResponseMcpCallArgumentsDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseMCPCallArgumentsDoneTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseMCPCallArgumentsDoneType value) + { + return value switch + { + RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.ResponseMcpCallArgumentsDone => "response.mcp_call_arguments.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? ToEnum(string value) + { + return value switch + { + "response.mcp_call_arguments.done" => RealtimeBetaServerEventResponseMCPCallArgumentsDoneType.ResponseMcpCallArgumentsDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompleted.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompleted.Json.g.cs new file mode 100644 index 00000000..8f2cb0a7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompleted.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseMCPCallCompleted + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted; + } + + /// + /// 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.RealtimeBetaServerEventResponseMCPCallCompleted? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseMCPCallCompleted), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompleted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompleted.g.cs new file mode 100644 index 00000000..f9b4254b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompleted.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an MCP tool call has completed successfully. + /// + public sealed partial class RealtimeBetaServerEventResponseMCPCallCompleted + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the MCP tool call item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The event type, must be `response.mcp_call.completed`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallCompletedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the MCP tool call item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The event type, must be `response.mcp_call.completed`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseMCPCallCompleted( + string eventId, + string itemId, + int outputIndex, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseMCPCallCompleted() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompletedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompletedType.g.cs new file mode 100644 index 00000000..af8d6d88 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallCompletedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.mcp_call.completed`. + /// + public enum RealtimeBetaServerEventResponseMCPCallCompletedType + { + /// + /// + /// + ResponseMcpCallCompleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseMCPCallCompletedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseMCPCallCompletedType value) + { + return value switch + { + RealtimeBetaServerEventResponseMCPCallCompletedType.ResponseMcpCallCompleted => "response.mcp_call.completed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseMCPCallCompletedType? ToEnum(string value) + { + return value switch + { + "response.mcp_call.completed" => RealtimeBetaServerEventResponseMCPCallCompletedType.ResponseMcpCallCompleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailed.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailed.Json.g.cs new file mode 100644 index 00000000..97dfee0a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailed.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseMCPCallFailed + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed; + } + + /// + /// 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.RealtimeBetaServerEventResponseMCPCallFailed? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseMCPCallFailed), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailed.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailed.g.cs new file mode 100644 index 00000000..9f0836ee --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailed.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an MCP tool call has failed. + /// + public sealed partial class RealtimeBetaServerEventResponseMCPCallFailed + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the MCP tool call item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The event type, must be `response.mcp_call.failed`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallFailedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the MCP tool call item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The event type, must be `response.mcp_call.failed`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseMCPCallFailed( + string eventId, + string itemId, + int outputIndex, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseMCPCallFailed() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailedType.g.cs new file mode 100644 index 00000000..62969c5e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallFailedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.mcp_call.failed`. + /// + public enum RealtimeBetaServerEventResponseMCPCallFailedType + { + /// + /// + /// + ResponseMcpCallFailed, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseMCPCallFailedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseMCPCallFailedType value) + { + return value switch + { + RealtimeBetaServerEventResponseMCPCallFailedType.ResponseMcpCallFailed => "response.mcp_call.failed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseMCPCallFailedType? ToEnum(string value) + { + return value switch + { + "response.mcp_call.failed" => RealtimeBetaServerEventResponseMCPCallFailedType.ResponseMcpCallFailed, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgress.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgress.Json.g.cs new file mode 100644 index 00000000..7ece812c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgress.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseMCPCallInProgress + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress; + } + + /// + /// 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.RealtimeBetaServerEventResponseMCPCallInProgress? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseMCPCallInProgress), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgress.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgress.g.cs new file mode 100644 index 00000000..164c7cf7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgress.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an MCP tool call has started and is in progress. + /// + public sealed partial class RealtimeBetaServerEventResponseMCPCallInProgress + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the MCP tool call item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The event type, must be `response.mcp_call.in_progress`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseMCPCallInProgressTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the MCP tool call item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The event type, must be `response.mcp_call.in_progress`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseMCPCallInProgress( + string eventId, + string itemId, + int outputIndex, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseMCPCallInProgress() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgressType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgressType.g.cs new file mode 100644 index 00000000..7f13fc63 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseMCPCallInProgressType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.mcp_call.in_progress`. + /// + public enum RealtimeBetaServerEventResponseMCPCallInProgressType + { + /// + /// + /// + ResponseMcpCallInProgress, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseMCPCallInProgressTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseMCPCallInProgressType value) + { + return value switch + { + RealtimeBetaServerEventResponseMCPCallInProgressType.ResponseMcpCallInProgress => "response.mcp_call.in_progress", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseMCPCallInProgressType? ToEnum(string value) + { + return value switch + { + "response.mcp_call.in_progress" => RealtimeBetaServerEventResponseMCPCallInProgressType.ResponseMcpCallInProgress, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAdded.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAdded.Json.g.cs new file mode 100644 index 00000000..dad07c5f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAdded.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseOutputItemAdded + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded; + } + + /// + /// 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.RealtimeBetaServerEventResponseOutputItemAdded? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseOutputItemAdded), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAdded.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAdded.g.cs new file mode 100644 index 00000000..4f77e103 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAdded.g.cs @@ -0,0 +1,102 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a new Item is created during Response generation. + /// + public sealed partial class RealtimeBetaServerEventResponseOutputItemAdded + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("item")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeConversationItem Item { get; set; } + + /// + /// The index of the output item in the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the Response to which the item belongs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.output_item.added`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemAddedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + /// + /// + /// The index of the output item in the Response. + /// + /// + /// The ID of the Response to which the item belongs. + /// + /// + /// The event type, must be `response.output_item.added`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseOutputItemAdded( + string eventId, + global::tryAGI.OpenAI.RealtimeConversationItem item, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseOutputItemAdded() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAddedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAddedType.g.cs new file mode 100644 index 00000000..1caa0cf6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemAddedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.output_item.added`. + /// + public enum RealtimeBetaServerEventResponseOutputItemAddedType + { + /// + /// + /// + ResponseOutputItemAdded, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseOutputItemAddedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseOutputItemAddedType value) + { + return value switch + { + RealtimeBetaServerEventResponseOutputItemAddedType.ResponseOutputItemAdded => "response.output_item.added", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseOutputItemAddedType? ToEnum(string value) + { + return value switch + { + "response.output_item.added" => RealtimeBetaServerEventResponseOutputItemAddedType.ResponseOutputItemAdded, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDone.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDone.Json.g.cs new file mode 100644 index 00000000..8777c251 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseOutputItemDone + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone; + } + + /// + /// 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.RealtimeBetaServerEventResponseOutputItemDone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseOutputItemDone), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDone.g.cs new file mode 100644 index 00000000..0dda209c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDone.g.cs @@ -0,0 +1,103 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when an Item is done streaming. Also emitted when a Response is
+ /// interrupted, incomplete, or cancelled. + ///
+ public sealed partial class RealtimeBetaServerEventResponseOutputItemDone + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("item")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeConversationItem Item { get; set; } + + /// + /// The index of the output item in the Response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the Response to which the item belongs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.output_item.done`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseOutputItemDoneTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// A realtime Item is of three types: message, function_call, or function_call_output.
+ /// A message item can contain text or audio.
+ /// A function_call item indicates a model's desire to call a function, which is the only tool supported for now
+ /// A function_call_output item indicates a function response.
+ /// The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete. + /// + /// + /// The index of the output item in the Response. + /// + /// + /// The ID of the Response to which the item belongs. + /// + /// + /// The event type, must be `response.output_item.done`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseOutputItemDone( + string eventId, + global::tryAGI.OpenAI.RealtimeConversationItem item, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseOutputItemDone() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDoneType.g.cs new file mode 100644 index 00000000..92210d48 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseOutputItemDoneType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.output_item.done`. + /// + public enum RealtimeBetaServerEventResponseOutputItemDoneType + { + /// + /// + /// + ResponseOutputItemDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseOutputItemDoneTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseOutputItemDoneType value) + { + return value switch + { + RealtimeBetaServerEventResponseOutputItemDoneType.ResponseOutputItemDone => "response.output_item.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseOutputItemDoneType? ToEnum(string value) + { + return value switch + { + "response.output_item.done" => RealtimeBetaServerEventResponseOutputItemDoneType.ResponseOutputItemDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDelta.Json.g.cs new file mode 100644 index 00000000..90c643b0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseTextDelta + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta; + } + + /// + /// 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.RealtimeBetaServerEventResponseTextDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseTextDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDelta.g.cs new file mode 100644 index 00000000..f1d45bf1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDelta.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the text value of an "output_text" content part is updated. + /// + public sealed partial class RealtimeBetaServerEventResponseTextDelta + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The text delta. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Delta { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The event type, must be `response.output_text.delta`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDeltaTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// The text delta. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The event type, must be `response.output_text.delta`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseTextDelta( + int contentIndex, + string delta, + string eventId, + string itemId, + int outputIndex, + string responseId, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType type) + { + this.ContentIndex = contentIndex; + this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseTextDelta() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDeltaType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDeltaType.g.cs new file mode 100644 index 00000000..edfdbf85 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDeltaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.output_text.delta`. + /// + public enum RealtimeBetaServerEventResponseTextDeltaType + { + /// + /// + /// + ResponseOutputTextDelta, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseTextDeltaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseTextDeltaType value) + { + return value switch + { + RealtimeBetaServerEventResponseTextDeltaType.ResponseOutputTextDelta => "response.output_text.delta", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseTextDeltaType? ToEnum(string value) + { + return value switch + { + "response.output_text.delta" => RealtimeBetaServerEventResponseTextDeltaType.ResponseOutputTextDelta, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDone.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDone.Json.g.cs new file mode 100644 index 00000000..2f97f332 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventResponseTextDone + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone; + } + + /// + /// 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.RealtimeBetaServerEventResponseTextDone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventResponseTextDone), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDone.g.cs new file mode 100644 index 00000000..d319887b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDone.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when the text value of an "output_text" content part is done streaming. Also
+ /// emitted when a Response is interrupted, incomplete, or cancelled. + ///
+ public sealed partial class RealtimeBetaServerEventResponseTextDone + { + /// + /// The index of the content part in the item's content array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The ID of the item. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ItemId { get; set; } + + /// + /// The index of the output item in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputIndex { get; set; } + + /// + /// The ID of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ResponseId { get; set; } + + /// + /// The final text content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// The event type, must be `response.output_text.done`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventResponseTextDoneTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The index of the content part in the item's content array. + /// + /// + /// The unique ID of the server event. + /// + /// + /// The ID of the item. + /// + /// + /// The index of the output item in the response. + /// + /// + /// The ID of the response. + /// + /// + /// The final text content. + /// + /// + /// The event type, must be `response.output_text.done`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventResponseTextDone( + int contentIndex, + string eventId, + string itemId, + int outputIndex, + string responseId, + string text, + global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType type) + { + this.ContentIndex = contentIndex; + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); + this.OutputIndex = outputIndex; + this.ResponseId = responseId ?? throw new global::System.ArgumentNullException(nameof(responseId)); + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventResponseTextDone() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDoneType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDoneType.g.cs new file mode 100644 index 00000000..d9b87865 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventResponseTextDoneType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `response.output_text.done`. + /// + public enum RealtimeBetaServerEventResponseTextDoneType + { + /// + /// + /// + ResponseOutputTextDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventResponseTextDoneTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventResponseTextDoneType value) + { + return value switch + { + RealtimeBetaServerEventResponseTextDoneType.ResponseOutputTextDone => "response.output_text.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventResponseTextDoneType? ToEnum(string value) + { + return value switch + { + "response.output_text.done" => RealtimeBetaServerEventResponseTextDoneType.ResponseOutputTextDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreated.Json.g.cs new file mode 100644 index 00000000..4121ffe9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventSessionCreated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated; + } + + /// + /// 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.RealtimeBetaServerEventSessionCreated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventSessionCreated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreated.g.cs new file mode 100644 index 00000000..a7415f05 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreated.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a Session is created. Emitted automatically when a new
+ /// connection is established as the first server event. This event will contain
+ /// the default Session configuration. + ///
+ public sealed partial class RealtimeBetaServerEventSessionCreated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// A session refers to a single WebSocket connection between a client and the server.
+ /// Once a client creates a session, it then sends JSON-formatted events containing text and audio chunks.
+ /// The server will respond in kind with audio containing voice output, a text transcript of that voice output,
+ /// and function calls (if functions are provided by the client).
+ /// A realtime Session represents the overall client-server interaction, and contains default configuration.
+ /// It has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeSession Session { get; set; } + + /// + /// The event type, must be `session.created`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionCreatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// A session refers to a single WebSocket connection between a client and the server.
+ /// Once a client creates a session, it then sends JSON-formatted events containing text and audio chunks.
+ /// The server will respond in kind with audio containing voice output, a text transcript of that voice output,
+ /// and function calls (if functions are provided by the client).
+ /// A realtime Session represents the overall client-server interaction, and contains default configuration.
+ /// It has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create). + /// + /// + /// The event type, must be `session.created`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventSessionCreated( + string eventId, + global::tryAGI.OpenAI.RealtimeSession session, + global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventSessionCreated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreatedType.g.cs new file mode 100644 index 00000000..d3f00ce8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionCreatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.created`. + /// + public enum RealtimeBetaServerEventSessionCreatedType + { + /// + /// + /// + SessionCreated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventSessionCreatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventSessionCreatedType value) + { + return value switch + { + RealtimeBetaServerEventSessionCreatedType.SessionCreated => "session.created", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventSessionCreatedType? ToEnum(string value) + { + return value switch + { + "session.created" => RealtimeBetaServerEventSessionCreatedType.SessionCreated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdated.Json.g.cs new file mode 100644 index 00000000..c0d8b527 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventSessionUpdated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated; + } + + /// + /// 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.RealtimeBetaServerEventSessionUpdated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventSessionUpdated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdated.g.cs new file mode 100644 index 00000000..e52520bc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdated.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a session is updated with a `session.update` event, unless
+ /// there is an error. + ///
+ public sealed partial class RealtimeBetaServerEventSessionUpdated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// A session refers to a single WebSocket connection between a client and the server.
+ /// Once a client creates a session, it then sends JSON-formatted events containing text and audio chunks.
+ /// The server will respond in kind with audio containing voice output, a text transcript of that voice output,
+ /// and function calls (if functions are provided by the client).
+ /// A realtime Session represents the overall client-server interaction, and contains default configuration.
+ /// It has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeSession Session { get; set; } + + /// + /// The event type, must be `session.updated`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventSessionUpdatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// A session refers to a single WebSocket connection between a client and the server.
+ /// Once a client creates a session, it then sends JSON-formatted events containing text and audio chunks.
+ /// The server will respond in kind with audio containing voice output, a text transcript of that voice output,
+ /// and function calls (if functions are provided by the client).
+ /// A realtime Session represents the overall client-server interaction, and contains default configuration.
+ /// It has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create). + /// + /// + /// The event type, must be `session.updated`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventSessionUpdated( + string eventId, + global::tryAGI.OpenAI.RealtimeSession session, + global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventSessionUpdated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdatedType.g.cs new file mode 100644 index 00000000..50ad05c4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventSessionUpdatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `session.updated`. + /// + public enum RealtimeBetaServerEventSessionUpdatedType + { + /// + /// + /// + SessionUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventSessionUpdatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventSessionUpdatedType value) + { + return value switch + { + RealtimeBetaServerEventSessionUpdatedType.SessionUpdated => "session.updated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventSessionUpdatedType? ToEnum(string value) + { + return value switch + { + "session.updated" => RealtimeBetaServerEventSessionUpdatedType.SessionUpdated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreated.Json.g.cs new file mode 100644 index 00000000..8158063d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventTranscriptionSessionCreated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated; + } + + /// + /// 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.RealtimeBetaServerEventTranscriptionSessionCreated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventTranscriptionSessionCreated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreated.g.cs new file mode 100644 index 00000000..103e7918 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreated.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a transcription session is created. + /// + public sealed partial class RealtimeBetaServerEventTranscriptionSessionCreated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse Session { get; set; } + + /// + /// The event type, must be `transcription_session.created`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. + /// + /// + /// The event type, must be `transcription_session.created`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventTranscriptionSessionCreated( + string eventId, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse session, + global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventTranscriptionSessionCreated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreatedType.g.cs new file mode 100644 index 00000000..192d2f60 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionCreatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `transcription_session.created`. + /// + public enum RealtimeBetaServerEventTranscriptionSessionCreatedType + { + /// + /// + /// + TranscriptionSessionCreated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventTranscriptionSessionCreatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventTranscriptionSessionCreatedType value) + { + return value switch + { + RealtimeBetaServerEventTranscriptionSessionCreatedType.TranscriptionSessionCreated => "transcription_session.created", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventTranscriptionSessionCreatedType? ToEnum(string value) + { + return value switch + { + "transcription_session.created" => RealtimeBetaServerEventTranscriptionSessionCreatedType.TranscriptionSessionCreated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdated.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdated.Json.g.cs new file mode 100644 index 00000000..9329193a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdated.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeBetaServerEventTranscriptionSessionUpdated + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated; + } + + /// + /// 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.RealtimeBetaServerEventTranscriptionSessionUpdated? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeBetaServerEventTranscriptionSessionUpdated), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdated.g.cs new file mode 100644 index 00000000..344daaca --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdated.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Returned when a transcription session is updated with a `transcription_session.update` event, unless
+ /// there is an error. + ///
+ public sealed partial class RealtimeBetaServerEventTranscriptionSessionUpdated + { + /// + /// The unique ID of the server event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse Session { get; set; } + + /// + /// The event type, must be `transcription_session.updated`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The unique ID of the server event. + /// + /// + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. + /// + /// + /// The event type, must be `transcription_session.updated`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeBetaServerEventTranscriptionSessionUpdated( + string eventId, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse session, + global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType type) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeBetaServerEventTranscriptionSessionUpdated() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdatedType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdatedType.g.cs new file mode 100644 index 00000000..b9b52cd6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeBetaServerEventTranscriptionSessionUpdatedType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The event type, must be `transcription_session.updated`. + /// + public enum RealtimeBetaServerEventTranscriptionSessionUpdatedType + { + /// + /// + /// + TranscriptionSessionUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeBetaServerEventTranscriptionSessionUpdatedTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeBetaServerEventTranscriptionSessionUpdatedType value) + { + return value switch + { + RealtimeBetaServerEventTranscriptionSessionUpdatedType.TranscriptionSessionUpdated => "transcription_session.updated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeBetaServerEventTranscriptionSessionUpdatedType? ToEnum(string value) + { + return value switch + { + "transcription_session.updated" => RealtimeBetaServerEventTranscriptionSessionUpdatedType.TranscriptionSessionUpdated, + _ => null, + }; + } + } +} \ No newline at end of file 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 79bcb055..2977e61c 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 @@ -170,13 +170,15 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventConversation /// /// Send this event to append audio bytes to the input audio buffer. The audio
- /// buffer is temporary storage you can write to and later commit. In Server VAD
- /// mode, the audio buffer is used to detect speech and the server will decide
+ /// buffer is temporary storage you can write to and later commit. A "commit" will create a new
+ /// user message item in the conversation history from the buffer content and clear the buffer.
+ /// Input audio transcription (if enabled) will be generated when the buffer is committed.
+ /// If VAD is enabled the audio buffer is used to detect speech and the server will decide
/// when to commit. When Server VAD is disabled, you must commit the audio buffer
- /// manually.
+ /// manually. Input audio noise reduction operates on writes to the audio buffer.
/// The client may choose how much audio to place in each event up to a maximum
/// of 15 MiB, for example streaming smaller chunks from the client may allow the
- /// VAD to be more responsive. Unlike made other client events, the server will
+ /// VAD to be more responsive. Unlike most other client events, the server will
/// not send a confirmation response to this event. ///
#if NET6_0_OR_GREATER @@ -287,15 +289,8 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioB } /// - /// Send this event to commit the user input audio buffer, which will create a
- /// new user message item in the conversation. This event will produce an error
- /// if the input audio buffer is empty. When in Server VAD mode, the client does
- /// not need to send this event, the server will commit the audio buffer
- /// automatically.
- /// Committing the input audio buffer will trigger input audio transcription
- /// (if enabled in session configuration), but it will not create a response
- /// from the model. The server will respond with an `input_audio_buffer.committed`
- /// event. + /// Send this event to commit the user input audio buffer, which will create a new user message item in the conversation. This event will produce an error if the input audio buffer is empty. When in Server VAD mode, the client does not need to send this event, the server will commit the audio buffer automatically.
+ /// Committing the input audio buffer will trigger input audio transcription (if enabled in session configuration), but it will not create a response from the model. The server will respond with an `input_audio_buffer.committed` event. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? InputAudioBufferCommit { get; init; } @@ -332,7 +327,9 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBu /// /// Send this event to cancel an in-progress response. The server will respond
/// with a `response.done` event with a status of `response.status=cancelled`. If
- /// there is no response to cancel, the server will respond with an error. + /// there is no response to cancel, the server will respond with an error. It's safe
+ /// to call `response.cancel` even if no response is in progress, an error will be
+ /// returned the session will remain unaffected. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? ResponseCancel { get; init; } @@ -372,13 +369,21 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventResponseCanc /// automatically.
/// A Response will include at least one Item, and may have two, in which case
/// the second will be a function call. These Items will be appended to the
- /// conversation history.
+ /// conversation history by default.
/// The server will respond with a `response.created` event, events for Items
/// and content created, and finally a `response.done` event to indicate the
/// Response is complete.
/// The `response.create` event includes inference configuration like
- /// `instructions`, and `temperature`. These fields will override the Session's
- /// configuration for this Response only. + /// `instructions` and `tools`. If these are set, they will override the Session's
+ /// configuration for this Response only.
+ /// Responses can be created out-of-band of the default Conversation, meaning that they can
+ /// have arbitrary input, and it's possible to disable writing the output to the Conversation.
+ /// Only one Response can write to the default Conversation at a time, but otherwise multiple
+ /// Responses can be created in parallel. The `metadata` field is a good way to disambiguate
+ /// multiple simultaneous Responses.
+ /// Clients can set `conversation` to `none` to create a Response that does not write to the default
+ /// Conversation. Arbitrary input can be provided with the `input` field, which is an array accepting
+ /// raw Items and references to existing Items. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? ResponseCreate { get; init; } @@ -413,15 +418,15 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventResponseCrea } /// - /// Send this event to update the session’s default configuration.
- /// The client may send this event at any time to update any field,
- /// except for `voice`. However, note that once a session has been
- /// initialized with a particular `model`, it can’t be changed to
- /// another model using `session.update`.
+ /// Send this event to update the session’s configuration.
+ /// The client may send this event at any time to update any field
+ /// except for `voice` and `model`. `voice` can be updated only if there have been no other
+ /// audio outputs yet.
/// When the server receives a `session.update`, it will respond
/// with a `session.updated` event showing the full, effective configuration.
- /// Only the fields that are present are updated. To clear a field like
- /// `instructions`, pass an empty string. + /// Only the fields that are present in the `session.update` are updated. To clear a field like
+ /// `instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.
+ /// To clear a field like `turn_detection`, pass `null`. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? SessionUpdate { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventConversationItemTruncate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventConversationItemTruncate.g.cs index 4f4aac81..409695ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventConversationItemTruncate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventConversationItemTruncate.g.cs @@ -26,7 +26,7 @@ public sealed partial class RealtimeClientEventConversationItemTruncate public required int AudioEndMs { get; set; } /// - /// The index of the content part to truncate. Set this to 0. + /// The index of the content part to truncate. Set this to `0`. /// [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] [global::System.Text.Json.Serialization.JsonRequired] @@ -68,7 +68,7 @@ public sealed partial class RealtimeClientEventConversationItemTruncate /// will respond with an error. /// /// - /// The index of the content part to truncate. Set this to 0. + /// The index of the content part to truncate. Set this to `0`. /// /// /// Optional client-generated ID used to identify this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventInputAudioBufferAppend.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventInputAudioBufferAppend.g.cs index 22356a28..6646734e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventInputAudioBufferAppend.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventInputAudioBufferAppend.g.cs @@ -5,13 +5,15 @@ namespace tryAGI.OpenAI { /// /// Send this event to append audio bytes to the input audio buffer. The audio
- /// buffer is temporary storage you can write to and later commit. In Server VAD
- /// mode, the audio buffer is used to detect speech and the server will decide
+ /// buffer is temporary storage you can write to and later commit. A "commit" will create a new
+ /// user message item in the conversation history from the buffer content and clear the buffer.
+ /// Input audio transcription (if enabled) will be generated when the buffer is committed.
+ /// If VAD is enabled the audio buffer is used to detect speech and the server will decide
/// when to commit. When Server VAD is disabled, you must commit the audio buffer
- /// manually.
+ /// manually. Input audio noise reduction operates on writes to the audio buffer.
/// The client may choose how much audio to place in each event up to a maximum
/// of 15 MiB, for example streaming smaller chunks from the client may allow the
- /// VAD to be more responsive. Unlike made other client events, the server will
+ /// VAD to be more responsive. Unlike most other client events, the server will
/// not send a confirmation response to this event. ///
public sealed partial class RealtimeClientEventInputAudioBufferAppend diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventInputAudioBufferCommit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventInputAudioBufferCommit.g.cs index 4d3e4b58..23544c46 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventInputAudioBufferCommit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventInputAudioBufferCommit.g.cs @@ -4,15 +4,8 @@ namespace tryAGI.OpenAI { /// - /// Send this event to commit the user input audio buffer, which will create a
- /// new user message item in the conversation. This event will produce an error
- /// if the input audio buffer is empty. When in Server VAD mode, the client does
- /// not need to send this event, the server will commit the audio buffer
- /// automatically.
- /// Committing the input audio buffer will trigger input audio transcription
- /// (if enabled in session configuration), but it will not create a response
- /// from the model. The server will respond with an `input_audio_buffer.committed`
- /// event. + /// Send this event to commit the user input audio buffer, which will create a new user message item in the conversation. This event will produce an error if the input audio buffer is empty. When in Server VAD mode, the client does not need to send this event, the server will commit the audio buffer automatically.
+ /// Committing the input audio buffer will trigger input audio transcription (if enabled in session configuration), but it will not create a response from the model. The server will respond with an `input_audio_buffer.committed` event. ///
public sealed partial class RealtimeClientEventInputAudioBufferCommit { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventResponseCancel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventResponseCancel.g.cs index 968146f4..42cd4c92 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventResponseCancel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventResponseCancel.g.cs @@ -6,7 +6,9 @@ namespace tryAGI.OpenAI /// /// Send this event to cancel an in-progress response. The server will respond
/// with a `response.done` event with a status of `response.status=cancelled`. If
- /// there is no response to cancel, the server will respond with an error. + /// there is no response to cancel, the server will respond with an error. It's safe
+ /// to call `response.cancel` even if no response is in progress, an error will be
+ /// returned the session will remain unaffected. ///
public sealed partial class RealtimeClientEventResponseCancel { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventResponseCreate.g.cs index 79b5309e..df6b6bc6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventResponseCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventResponseCreate.g.cs @@ -9,13 +9,21 @@ namespace tryAGI.OpenAI /// automatically.
/// A Response will include at least one Item, and may have two, in which case
/// the second will be a function call. These Items will be appended to the
- /// conversation history.
+ /// conversation history by default.
/// The server will respond with a `response.created` event, events for Items
/// and content created, and finally a `response.done` event to indicate the
/// Response is complete.
/// The `response.create` event includes inference configuration like
- /// `instructions`, and `temperature`. These fields will override the Session's
- /// configuration for this Response only. + /// `instructions` and `tools`. If these are set, they will override the Session's
+ /// configuration for this Response only.
+ /// Responses can be created out-of-band of the default Conversation, meaning that they can
+ /// have arbitrary input, and it's possible to disable writing the output to the Conversation.
+ /// Only one Response can write to the default Conversation at a time, but otherwise multiple
+ /// Responses can be created in parallel. The `metadata` field is a good way to disambiguate
+ /// multiple simultaneous Responses.
+ /// Clients can set `conversation` to `none` to create a Response that does not write to the default
+ /// Conversation. Arbitrary input can be provided with the `input` field, which is an array accepting
+ /// raw Items and references to existing Items. ///
public sealed partial class RealtimeClientEventResponseCreate { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventSessionUpdate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventSessionUpdate.g.cs index a3a3540d..fe37adc4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventSessionUpdate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventSessionUpdate.g.cs @@ -1,33 +1,37 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace tryAGI.OpenAI { /// - /// Send this event to update the session’s default configuration.
- /// The client may send this event at any time to update any field,
- /// except for `voice`. However, note that once a session has been
- /// initialized with a particular `model`, it can’t be changed to
- /// another model using `session.update`.
+ /// Send this event to update the session’s configuration.
+ /// The client may send this event at any time to update any field
+ /// except for `voice` and `model`. `voice` can be updated only if there have been no other
+ /// audio outputs yet.
/// When the server receives a `session.update`, it will respond
/// with a `session.updated` event showing the full, effective configuration.
- /// Only the fields that are present are updated. To clear a field like
- /// `instructions`, pass an empty string. + /// Only the fields that are present in the `session.update` are updated. To clear a field like
+ /// `instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.
+ /// To clear a field like `turn_detection`, pass `null`. ///
public sealed partial class RealtimeClientEventSessionUpdate { /// - /// Optional client-generated ID used to identify this event. + /// Optional client-generated ID used to identify this event. This is an arbitrary string that a client may assign. It will be passed back if there is an error with the event, but the corresponding `session.updated` event will not include it. /// [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] public string? EventId { get; set; } /// - /// Realtime session object configuration. + /// Update the Realtime session. Choose either a realtime
+ /// session or a transcription session. ///
[global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.RealtimeSessionCreateRequest Session { get; set; } + public required global::tryAGI.OpenAI.AnyOf Session { get; set; } /// /// The event type, must be `session.update`. @@ -46,10 +50,11 @@ public sealed partial class RealtimeClientEventSessionUpdate /// Initializes a new instance of the class. /// /// - /// Optional client-generated ID used to identify this event. + /// Optional client-generated ID used to identify this event. This is an arbitrary string that a client may assign. It will be passed back if there is an error with the event, but the corresponding `session.updated` event will not include it. /// /// - /// Realtime session object configuration. + /// Update the Realtime session. Choose either a realtime
+ /// session or a transcription session. /// /// /// The event type, must be `session.update`. @@ -58,11 +63,11 @@ public sealed partial class RealtimeClientEventSessionUpdate [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeClientEventSessionUpdate( - global::tryAGI.OpenAI.RealtimeSessionCreateRequest session, + global::tryAGI.OpenAI.AnyOf session, string? eventId, global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType type) { - this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.Session = session; this.EventId = eventId; this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCall.g.cs index 7d710d01..92850c4e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCall.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class RealtimeConversationItemFunctionCall { /// - /// The arguments of the function call. + /// The arguments of the function call. This is a JSON-encoded string representing the arguments passed to the function, for example `{"arg1": "value1", "arg2": 42}`. /// [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] [global::System.Text.Json.Serialization.JsonRequired] @@ -22,7 +22,7 @@ public sealed partial class RealtimeConversationItemFunctionCall public string? CallId { get; set; } /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } @@ -35,7 +35,7 @@ public sealed partial class RealtimeConversationItemFunctionCall public required string Name { get; set; } /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter))] @@ -65,19 +65,19 @@ public sealed partial class RealtimeConversationItemFunctionCall /// Initializes a new instance of the class. ///
/// - /// The arguments of the function call. + /// The arguments of the function call. This is a JSON-encoded string representing the arguments passed to the function, for example `{"arg1": "value1", "arg2": 42}`. /// /// /// The ID of the function call. /// /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// /// /// The name of the function being called. /// /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// /// /// The status of the item. Has no effect on the conversation. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallObject.g.cs index 9adc1998..b7eed04c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallObject.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// public enum RealtimeConversationItemFunctionCallObject { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallOutput.g.cs index 17d35824..4cd9cfbd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallOutput.g.cs @@ -16,20 +16,20 @@ public sealed partial class RealtimeConversationItemFunctionCallOutput public required string CallId { get; set; } /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallOutputObjectJsonConverter))] public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Object { get; set; } /// - /// The output of the function call. + /// The output of the function call, this is free text and can contain any information or simply be empty. /// [global::System.Text.Json.Serialization.JsonPropertyName("output")] [global::System.Text.Json.Serialization.JsonRequired] @@ -62,13 +62,13 @@ public sealed partial class RealtimeConversationItemFunctionCallOutput /// The ID of the function call this output is for. /// /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// /// - /// The output of the function call. + /// The output of the function call, this is free text and can contain any information or simply be empty. /// /// /// The status of the item. Has no effect on the conversation. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallOutputObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallOutputObject.g.cs index 9b45c181..ca3780c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallOutputObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemFunctionCallOutputObject.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// public enum RealtimeConversationItemFunctionCallOutputObject { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistant.g.cs index 8b490045..cb491c4c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistant.g.cs @@ -16,13 +16,13 @@ public sealed partial class RealtimeConversationItemMessageAssistant public required global::System.Collections.Generic.IList Content { get; set; } /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantObjectJsonConverter))] @@ -62,10 +62,10 @@ public sealed partial class RealtimeConversationItemMessageAssistant /// The content of the message. /// /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// /// /// The role of the message sender. Always `assistant`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantContentItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantContentItem.g.cs index 72c19801..8436a21c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantContentItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantContentItem.g.cs @@ -8,6 +8,12 @@ namespace tryAGI.OpenAI ///
public sealed partial class RealtimeConversationItemMessageAssistantContentItem { + /// + /// Base64-encoded audio bytes, these will be parsed as the format specified in the session output audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public string? Audio { get; set; } + /// /// The text content. /// @@ -15,7 +21,13 @@ public sealed partial class RealtimeConversationItemMessageAssistantContentItem public string? Text { get; set; } /// - /// The content type. Always `text` for assistant messages. + /// The transcript of the audio content, this will always be present if the output type is `audio`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] + public string? Transcript { get; set; } + + /// + /// The content type, `output_text` or `output_audio` depending on the session `output_modalities` configuration. /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageAssistantContentItemTypeJsonConverter))] @@ -30,20 +42,30 @@ public sealed partial class RealtimeConversationItemMessageAssistantContentItem /// /// Initializes a new instance of the class. /// + /// + /// Base64-encoded audio bytes, these will be parsed as the format specified in the session output audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified. + /// /// /// The text content. /// + /// + /// The transcript of the audio content, this will always be present if the output type is `audio`. + /// /// - /// The content type. Always `text` for assistant messages. + /// The content type, `output_text` or `output_audio` depending on the session `output_modalities` configuration. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeConversationItemMessageAssistantContentItem( + string? audio, string? text, + string? transcript, global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? type) { + this.Audio = audio; this.Text = text; + this.Transcript = transcript; this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantContentItemType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantContentItemType.g.cs index 4b9c9cfb..e003e486 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantContentItemType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantContentItemType.g.cs @@ -4,14 +4,18 @@ namespace tryAGI.OpenAI { /// - /// The content type. Always `text` for assistant messages. + /// The content type, `output_text` or `output_audio` depending on the session `output_modalities` configuration. /// public enum RealtimeConversationItemMessageAssistantContentItemType { /// /// /// - Text, + OutputText, + /// + /// + /// + OutputAudio, } /// @@ -26,7 +30,8 @@ public static string ToValueString(this RealtimeConversationItemMessageAssistant { return value switch { - RealtimeConversationItemMessageAssistantContentItemType.Text => "text", + RealtimeConversationItemMessageAssistantContentItemType.OutputText => "output_text", + RealtimeConversationItemMessageAssistantContentItemType.OutputAudio => "output_audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +42,8 @@ public static string ToValueString(this RealtimeConversationItemMessageAssistant { return value switch { - "text" => RealtimeConversationItemMessageAssistantContentItemType.Text, + "output_text" => RealtimeConversationItemMessageAssistantContentItemType.OutputText, + "output_audio" => RealtimeConversationItemMessageAssistantContentItemType.OutputAudio, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantObject.g.cs index d380e68b..bcfd377d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageAssistantObject.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// public enum RealtimeConversationItemMessageAssistantObject { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageSystem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageSystem.g.cs index 4642ce00..b503c455 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageSystem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageSystem.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// A system message item in a Realtime conversation. + /// A system message in a Realtime conversation can be used to provide additional context or instructions to the model. This is similar but distinct from the instruction prompt provided at the start of a conversation, as system messages can be added at any point in the conversation. For major changes to the conversation's behavior, use instructions, but for smaller updates (e.g. "the user is now asking about a different topic"), use system messages. /// public sealed partial class RealtimeConversationItemMessageSystem { @@ -16,13 +16,13 @@ public sealed partial class RealtimeConversationItemMessageSystem public required global::System.Collections.Generic.IList Content { get; set; } /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageSystemObjectJsonConverter))] @@ -62,10 +62,10 @@ public sealed partial class RealtimeConversationItemMessageSystem /// The content of the message. /// /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// /// /// The role of the message sender. Always `system`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageSystemObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageSystemObject.g.cs index 6c3961b8..024db5fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageSystemObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageSystemObject.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// public enum RealtimeConversationItemMessageSystemObject { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUser.g.cs index 71e54d49..6edc4311 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUser.g.cs @@ -16,13 +16,13 @@ public sealed partial class RealtimeConversationItemMessageUser public required global::System.Collections.Generic.IList Content { get; set; } /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserObjectJsonConverter))] @@ -62,10 +62,10 @@ public sealed partial class RealtimeConversationItemMessageUser /// The content of the message. /// /// - /// The unique ID of the item. + /// The unique ID of the item. This may be provided by the client or generated by the server. /// /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// /// /// The role of the message sender. Always `user`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItem.g.cs index 11ac2d18..94124487 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItem.g.cs @@ -9,11 +9,25 @@ namespace tryAGI.OpenAI public sealed partial class RealtimeConversationItemMessageUserContentItem { /// - /// Base64-encoded audio bytes (for `input_audio`). + /// Base64-encoded audio bytes (for `input_audio`), these will be parsed as the format specified in the session input audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified. /// [global::System.Text.Json.Serialization.JsonPropertyName("audio")] public string? Audio { get; set; } + /// + /// The detail level of the image (for `input_image`). `auto` will default to `high`.
+ /// Default Value: auto + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("detail")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemDetailJsonConverter))] + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Detail { get; set; } + + /// + /// Base64-encoded image bytes (for `input_image`) as a data URI. For example `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...`. Supported formats are PNG and JPEG. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_url")] + public string? ImageUrl { get; set; } + /// /// The text content (for `input_text`). /// @@ -21,13 +35,13 @@ public sealed partial class RealtimeConversationItemMessageUserContentItem public string? Text { get; set; } /// - /// Transcript of the audio (for `input_audio`). + /// Transcript of the audio (for `input_audio`). This is not sent to the model, but will be attached to the message item for reference. /// [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] public string? Transcript { get; set; } /// - /// The content type (`input_text` or `input_audio`). + /// The content type (`input_text`, `input_audio`, or `input_image`). /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemMessageUserContentItemTypeJsonConverter))] @@ -43,27 +57,38 @@ public sealed partial class RealtimeConversationItemMessageUserContentItem /// Initializes a new instance of the class. ///
/// - /// Base64-encoded audio bytes (for `input_audio`). + /// Base64-encoded audio bytes (for `input_audio`), these will be parsed as the format specified in the session input audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified. + /// + /// + /// The detail level of the image (for `input_image`). `auto` will default to `high`.
+ /// Default Value: auto + /// + /// + /// Base64-encoded image bytes (for `input_image`) as a data URI. For example `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...`. Supported formats are PNG and JPEG. /// /// /// The text content (for `input_text`). /// /// - /// Transcript of the audio (for `input_audio`). + /// Transcript of the audio (for `input_audio`). This is not sent to the model, but will be attached to the message item for reference. /// /// - /// The content type (`input_text` or `input_audio`). + /// The content type (`input_text`, `input_audio`, or `input_image`). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeConversationItemMessageUserContentItem( string? audio, + global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? detail, + string? imageUrl, string? text, string? transcript, global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? type) { this.Audio = audio; + this.Detail = detail; + this.ImageUrl = imageUrl; this.Text = text; this.Transcript = transcript; this.Type = type; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItemDetail.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItemDetail.g.cs new file mode 100644 index 00000000..09fc7283 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItemDetail.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The detail level of the image (for `input_image`). `auto` will default to `high`.
+ /// Default Value: auto + ///
+ public enum RealtimeConversationItemMessageUserContentItemDetail + { + /// + /// + /// + Auto, + /// + /// + /// + Low, + /// + /// + /// + High, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeConversationItemMessageUserContentItemDetailExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeConversationItemMessageUserContentItemDetail value) + { + return value switch + { + RealtimeConversationItemMessageUserContentItemDetail.Auto => "auto", + RealtimeConversationItemMessageUserContentItemDetail.Low => "low", + RealtimeConversationItemMessageUserContentItemDetail.High => "high", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeConversationItemMessageUserContentItemDetail? ToEnum(string value) + { + return value switch + { + "auto" => RealtimeConversationItemMessageUserContentItemDetail.Auto, + "low" => RealtimeConversationItemMessageUserContentItemDetail.Low, + "high" => RealtimeConversationItemMessageUserContentItemDetail.High, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItemType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItemType.g.cs index 6e06d720..1007d878 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItemType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserContentItemType.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// The content type (`input_text` or `input_audio`). + /// The content type (`input_text`, `input_audio`, or `input_image`). /// public enum RealtimeConversationItemMessageUserContentItemType { @@ -16,6 +16,10 @@ public enum RealtimeConversationItemMessageUserContentItemType /// ///
InputAudio, + /// + /// + /// + InputImage, } /// @@ -32,6 +36,7 @@ public static string ToValueString(this RealtimeConversationItemMessageUserConte { RealtimeConversationItemMessageUserContentItemType.InputText => "input_text", RealtimeConversationItemMessageUserContentItemType.InputAudio => "input_audio", + RealtimeConversationItemMessageUserContentItemType.InputImage => "input_image", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -44,6 +49,7 @@ public static string ToValueString(this RealtimeConversationItemMessageUserConte { "input_text" => RealtimeConversationItemMessageUserContentItemType.InputText, "input_audio" => RealtimeConversationItemMessageUserContentItemType.InputAudio, + "input_image" => RealtimeConversationItemMessageUserContentItemType.InputImage, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserObject.g.cs index 0436598e..515e8321 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemMessageUserObject.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Identifier for the API object being returned - always `realtime.item`. + /// Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. /// public enum RealtimeConversationItemMessageUserObject { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequest.g.cs index 34b36f79..44a00a0b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequest.g.cs @@ -11,7 +11,10 @@ namespace tryAGI.OpenAI public sealed partial class RealtimeCreateClientSecretRequest { /// - /// Configuration for the ephemeral token expiration. + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. ///
[global::System.Text.Json.Serialization.JsonPropertyName("expires_after")] public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? ExpiresAfter { get; set; } @@ -34,7 +37,10 @@ public sealed partial class RealtimeCreateClientSecretRequest /// Initializes a new instance of the class. ///
/// - /// Configuration for the ephemeral token expiration. + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. /// /// /// Session configuration to use for the client secret. Choose either a realtime
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequestExpiresAfter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequestExpiresAfter.g.cs index dcd130ff..7c8da43c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequestExpiresAfter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequestExpiresAfter.g.cs @@ -4,12 +4,15 @@ namespace tryAGI.OpenAI { /// - /// Configuration for the ephemeral token expiration. + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. ///
public sealed partial class RealtimeCreateClientSecretRequestExpiresAfter { /// - /// The anchor point for the ephemeral token expiration. Only `created_at` is currently supported.
+ /// The anchor point for the client secret expiration, meaning that `seconds` will be added to the `created_at` time of the client secret to produce an expiration timestamp. Only `created_at` is currently supported.
/// Default Value: created_at ///
[global::System.Text.Json.Serialization.JsonPropertyName("anchor")] @@ -17,7 +20,7 @@ public sealed partial class RealtimeCreateClientSecretRequestExpiresAfter public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Anchor { get; set; } /// - /// The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200`.
+ /// The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if not specified.
/// Default Value: 600 ///
[global::System.Text.Json.Serialization.JsonPropertyName("seconds")] @@ -33,11 +36,11 @@ public sealed partial class RealtimeCreateClientSecretRequestExpiresAfter /// Initializes a new instance of the class. ///
/// - /// The anchor point for the ephemeral token expiration. Only `created_at` is currently supported.
+ /// The anchor point for the client secret expiration, meaning that `seconds` will be added to the `created_at` time of the client secret to produce an expiration timestamp. Only `created_at` is currently supported.
/// Default Value: created_at /// /// - /// The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200`.
+ /// The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if not specified.
/// Default Value: 600 /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequestExpiresAfterAnchor.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequestExpiresAfterAnchor.g.cs index 3c0afdb8..2892ca78 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequestExpiresAfterAnchor.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretRequestExpiresAfterAnchor.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// The anchor point for the ephemeral token expiration. Only `created_at` is currently supported.
+ /// The anchor point for the client secret expiration, meaning that `seconds` will be added to the `created_at` time of the client secret to produce an expiration timestamp. Only `created_at` is currently supported.
/// Default Value: created_at ///
public enum RealtimeCreateClientSecretRequestExpiresAfterAnchor diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponse.g.cs index 034c0776..fcd806fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponse.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -21,9 +19,9 @@ public sealed partial class RealtimeCreateClientSecretResponse /// The session configuration for either a realtime or transcription session. ///
[global::System.Text.Json.Serialization.JsonPropertyName("session")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.Session2JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.AnyOf Session { get; set; } + public required global::tryAGI.OpenAI.Session2 Session { get; set; } /// /// The generated client secret value. @@ -55,7 +53,7 @@ public sealed partial class RealtimeCreateClientSecretResponse #endif public RealtimeCreateClientSecretResponse( int expiresAt, - global::tryAGI.OpenAI.AnyOf session, + global::tryAGI.OpenAI.Session2 session, string value) { this.ExpiresAt = expiresAt; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.Json.g.cs new file mode 100644 index 00000000..34e6e340 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeCreateClientSecretResponseSessionDiscriminator + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator; + } + + /// + /// 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.RealtimeCreateClientSecretResponseSessionDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeCreateClientSecretResponseSessionDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.g.cs similarity index 53% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.g.cs index 8e014607..3faf980c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.g.cs @@ -4,16 +4,15 @@ namespace tryAGI.OpenAI { /// - /// Configuration for input audio noise reduction. + /// /// - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction + public sealed partial class RealtimeCreateClientSecretResponseSessionDiscriminator { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType? Type { get; set; } + public string? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +21,22 @@ public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInput 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. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction( - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType? type) + public RealtimeCreateClientSecretResponseSessionDiscriminator( + string? type) { this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction() + public RealtimeCreateClientSecretResponseSessionDiscriminator() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionTool.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionTool.Json.g.cs new file mode 100644 index 00000000..a5ae22ff --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionTool.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeFunctionTool + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeFunctionTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeFunctionTool), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeFunctionTool; + } + + /// + /// 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.RealtimeFunctionTool? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeFunctionTool), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeFunctionTool; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionTool.g.cs similarity index 83% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTool.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionTool.g.cs index 5bd0dac6..d258b08a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionTool.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public sealed partial class RealtimeSessionCreateResponseTool + public sealed partial class RealtimeFunctionTool { /// /// The description of the function, including guidance on when and how
@@ -32,8 +32,8 @@ public sealed partial class RealtimeSessionCreateResponseTool /// The type of the tool, i.e. `function`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseToolTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +42,7 @@ public sealed partial class RealtimeSessionCreateResponseTool 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. /// /// /// The description of the function, including guidance on when and how
@@ -61,11 +61,11 @@ public sealed partial class RealtimeSessionCreateResponseTool #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateResponseTool( + public RealtimeFunctionTool( string? description, string? name, object? parameters, - global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType? type) + global::tryAGI.OpenAI.RealtimeFunctionToolType? type) { this.Description = description; this.Name = name; @@ -74,9 +74,9 @@ public RealtimeSessionCreateResponseTool( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateResponseTool() + public RealtimeFunctionTool() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolParameters.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolParameters.Json.g.cs new file mode 100644 index 00000000..c73ed54b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolParameters.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeFunctionToolParameters + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeFunctionToolParameters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeFunctionToolParameters), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeFunctionToolParameters; + } + + /// + /// 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.RealtimeFunctionToolParameters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeFunctionToolParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeFunctionToolParameters; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolParameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolParameters.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolParameters.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolParameters.g.cs index 38570cf1..83073dff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolParameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolParameters.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Parameters of the function in JSON Schema. /// - public sealed partial class RealtimeResponseCreateParamsToolParameters + public sealed partial class RealtimeFunctionToolParameters { /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolType.g.cs similarity index 64% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolType.g.cs index cdf2b504..5896913f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeFunctionToolType.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// The type of the tool, i.e. `function`. /// - public enum RealtimeResponseCreateParamsToolType + public enum RealtimeFunctionToolType { /// /// @@ -17,27 +17,27 @@ public enum RealtimeResponseCreateParamsToolType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeResponseCreateParamsToolTypeExtensions + public static class RealtimeFunctionToolTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeResponseCreateParamsToolType value) + public static string ToValueString(this RealtimeFunctionToolType value) { return value switch { - RealtimeResponseCreateParamsToolType.Function => "function", + RealtimeFunctionToolType.Function => "function", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeResponseCreateParamsToolType? ToEnum(string value) + public static RealtimeFunctionToolType? ToEnum(string value) { return value switch { - "function" => RealtimeResponseCreateParamsToolType.Function, + "function" => RealtimeFunctionToolType.Function, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParams.g.cs index 0b656e74..bf04dc13 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParams.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParams.g.cs @@ -10,11 +10,17 @@ namespace tryAGI.OpenAI /// public sealed partial class RealtimeResponseCreateParams { + /// + /// Configuration for audio input and output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Audio { get; set; } + /// /// Controls which conversation the response is added to. Currently supports
/// `auto` and `none`, with `auto` as the default value. The `auto` value
/// means that the contents of the response will be added to the default
- /// conversation. Set this to `none` to create an out-of-band response which
+ /// conversation. Set this to `none` to create an out-of-band response which
/// will not add items to default conversation. ///
[global::System.Text.Json.Serialization.JsonPropertyName("conversation")] @@ -25,23 +31,15 @@ public sealed partial class RealtimeResponseCreateParams /// Input items to include in the prompt for the model. Using this field
/// creates a new context for this Response instead of using the default
/// conversation. An empty array `[]` will clear the context for this Response.
- /// Note that this can include references to items from the default conversation. + /// Note that this can include references to items that previously appeared in the session
+ /// using their id. ///
[global::System.Text.Json.Serialization.JsonPropertyName("input")] public global::System.Collections.Generic.IList? Input { get; set; } /// - /// The default system instructions (i.e. system message) prepended to model
- /// calls. This field allows the client to guide the model on desired
- /// responses. The model can be instructed on response content and format,
- /// (e.g. "be extremely succinct", "act friendly", "here are examples of good
- /// responses") and on audio behavior (e.g. "talk quickly", "inject emotion
- /// into your voice", "laugh frequently"). The instructions are not guaranteed
- /// to be followed by the model, but they provide guidance to the model on the
- /// desired behavior.
- /// Note that the server sets default instructions which will be used if this
- /// field is not set and are visible in the `session.created` event at the
- /// start of the session. + /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
+ /// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. ///
[global::System.Text.Json.Serialization.JsonPropertyName("instructions")] public string? Instructions { get; set; } @@ -67,18 +65,12 @@ public sealed partial class RealtimeResponseCreateParams public global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// - /// The set of modalities the model can respond with. To disable audio,
- /// set this to ["text"]. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("modalities")] - public global::System.Collections.Generic.IList? Modalities { get; set; } - - /// - /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// The set of modalities the model used to respond, currently the only possible values are
+ /// `[\"audio\"]`, `[\"text\"]`. Audio output always include a text transcript. Setting the
+ /// output to mode `text` will disable audio output from the model. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("output_audio_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsOutputAudioFormatJsonConverter))] - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat? OutputAudioFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("output_modalities")] + public global::System.Collections.Generic.IList? OutputModalities { get; set; } /// /// Reference to a prompt template and its variables.
@@ -87,12 +79,6 @@ public sealed partial class RealtimeResponseCreateParams [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] public global::tryAGI.OpenAI.Prompt2? Prompt { get; set; } - /// - /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - /// /// How the model chooses tools. Provide one of the string modes or force a specific
/// function/MCP tool.
@@ -103,18 +89,10 @@ public sealed partial class RealtimeResponseCreateParams public global::tryAGI.OpenAI.AnyOf? ToolChoice { get; set; } /// - /// Tools (functions) available to the model. + /// Tools available to the model. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } - - /// - /// Example: ash - /// - /// ash - [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter))] - public global::tryAGI.OpenAI.VoiceIdsShared? Voice { get; set; } + public global::System.Collections.Generic.IList>? Tools { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -125,31 +103,26 @@ public sealed partial class RealtimeResponseCreateParams /// /// Initializes a new instance of the class. /// + /// + /// Configuration for audio input and output. + /// /// /// Controls which conversation the response is added to. Currently supports
/// `auto` and `none`, with `auto` as the default value. The `auto` value
/// means that the contents of the response will be added to the default
- /// conversation. Set this to `none` to create an out-of-band response which
+ /// conversation. Set this to `none` to create an out-of-band response which
/// will not add items to default conversation. /// /// /// Input items to include in the prompt for the model. Using this field
/// creates a new context for this Response instead of using the default
/// conversation. An empty array `[]` will clear the context for this Response.
- /// Note that this can include references to items from the default conversation. + /// Note that this can include references to items that previously appeared in the session
+ /// using their id. /// /// - /// The default system instructions (i.e. system message) prepended to model
- /// calls. This field allows the client to guide the model on desired
- /// responses. The model can be instructed on response content and format,
- /// (e.g. "be extremely succinct", "act friendly", "here are examples of good
- /// responses") and on audio behavior (e.g. "talk quickly", "inject emotion
- /// into your voice", "laugh frequently"). The instructions are not guaranteed
- /// to be followed by the model, but they provide guidance to the model on the
- /// desired behavior.
- /// Note that the server sets default instructions which will be used if this
- /// field is not set and are visible in the `session.created` event at the
- /// start of the session. + /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
+ /// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. /// /// /// Maximum number of output tokens for a single assistant response,
@@ -164,60 +137,48 @@ public sealed partial class RealtimeResponseCreateParams /// Keys are strings with a maximum length of 64 characters. Values are strings
/// with a maximum length of 512 characters. /// - /// - /// The set of modalities the model can respond with. To disable audio,
- /// set this to ["text"]. - /// - /// - /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// + /// The set of modalities the model used to respond, currently the only possible values are
+ /// `[\"audio\"]`, `[\"text\"]`. Audio output always include a text transcript. Setting the
+ /// output to mode `text` will disable audio output from the model. /// /// /// Reference to a prompt template and its variables.
/// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). /// - /// - /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. - /// /// /// How the model chooses tools. Provide one of the string modes or force a specific
/// function/MCP tool.
/// Default Value: auto /// /// - /// Tools (functions) available to the model. - /// - /// - /// Example: ash + /// Tools available to the model. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeResponseCreateParams( + global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? audio, global::tryAGI.OpenAI.AnyOf? conversation, global::System.Collections.Generic.IList? input, string? instructions, global::tryAGI.OpenAI.AnyOf? maxOutputTokens, global::System.Collections.Generic.Dictionary? metadata, - global::System.Collections.Generic.IList? modalities, - global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat? outputAudioFormat, + global::System.Collections.Generic.IList? outputModalities, global::tryAGI.OpenAI.Prompt2? prompt, - double? temperature, global::tryAGI.OpenAI.AnyOf? toolChoice, - global::System.Collections.Generic.IList? tools, - global::tryAGI.OpenAI.VoiceIdsShared? voice) + global::System.Collections.Generic.IList>? tools) { + this.Audio = audio; this.Conversation = conversation; this.Input = input; this.Instructions = instructions; this.MaxOutputTokens = maxOutputTokens; this.Metadata = metadata; - this.Modalities = modalities; - this.OutputAudioFormat = outputAudioFormat; + this.OutputModalities = outputModalities; this.Prompt = prompt; - this.Temperature = temperature; this.ToolChoice = toolChoice; this.Tools = tools; - this.Voice = voice; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsTool.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudio.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsTool.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudio.Json.g.cs index 69c87b7b..ab88117c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsTool.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudio.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeResponseCreateParamsTool + public sealed partial class RealtimeResponseCreateParamsAudio { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeResponseCreateParamsTool? FromJson( + public static global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsTool), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeResponseCreateParamsTool; + typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio; } /// @@ -51,11 +51,11 @@ 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.RealtimeResponseCreateParamsTool? FromJson( + public static global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeResponseCreateParamsTool), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeResponseCreateParamsTool; + typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeResponseCreateParamsAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudio.g.cs new file mode 100644 index 00000000..aa9fc916 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudio.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Configuration for audio input and output. + /// + public sealed partial class RealtimeResponseCreateParamsAudio + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Output { 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 RealtimeResponseCreateParamsAudio( + global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? output) + { + this.Output = output; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeResponseCreateParamsAudio() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolParameters.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudioOutput.Json.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolParameters.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudioOutput.Json.g.cs index 731df32b..ee36f2e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsToolParameters.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudioOutput.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeResponseCreateParamsToolParameters + public sealed partial class RealtimeResponseCreateParamsAudioOutput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolParameters? FromJson( + public static global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolParameters), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolParameters; + typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput; } /// @@ -51,11 +51,11 @@ 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.RealtimeResponseCreateParamsToolParameters? FromJson( + public static global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeResponseCreateParamsToolParameters), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolParameters; + typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeResponseCreateParamsAudioOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudioOutput.g.cs new file mode 100644 index 00000000..df32ff83 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsAudioOutput.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeResponseCreateParamsAudioOutput + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter))] + public global::tryAGI.OpenAI.RealtimeAudioFormats? Format { get; set; } + + /// + /// Example: ash + /// + /// ash + [global::System.Text.Json.Serialization.JsonPropertyName("voice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter))] + public global::tryAGI.OpenAI.VoiceIdsShared? Voice { 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. + /// + /// + /// + /// Example: ash + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeResponseCreateParamsAudioOutput( + global::tryAGI.OpenAI.RealtimeAudioFormats? format, + global::tryAGI.OpenAI.VoiceIdsShared? voice) + { + this.Format = format; + this.Voice = voice; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeResponseCreateParamsAudioOutput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsOutputModalitie.g.cs similarity index 63% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalitie.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsOutputModalitie.g.cs index 2fbb7b18..8e3990bf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalitie.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsOutputModalitie.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public enum RealtimeSessionCreateRequestOutputModalitie + public enum RealtimeResponseCreateParamsOutputModalitie { /// /// @@ -21,29 +21,29 @@ public enum RealtimeSessionCreateRequestOutputModalitie /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestOutputModalitieExtensions + public static class RealtimeResponseCreateParamsOutputModalitieExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestOutputModalitie value) + public static string ToValueString(this RealtimeResponseCreateParamsOutputModalitie value) { return value switch { - RealtimeSessionCreateRequestOutputModalitie.Text => "text", - RealtimeSessionCreateRequestOutputModalitie.Audio => "audio", + RealtimeResponseCreateParamsOutputModalitie.Text => "text", + RealtimeResponseCreateParamsOutputModalitie.Audio => "audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestOutputModalitie? ToEnum(string value) + public static RealtimeResponseCreateParamsOutputModalitie? ToEnum(string value) { return value switch { - "text" => RealtimeSessionCreateRequestOutputModalitie.Text, - "audio" => RealtimeSessionCreateRequestOutputModalitie.Audio, + "text" => RealtimeResponseCreateParamsOutputModalitie.Text, + "audio" => RealtimeResponseCreateParamsOutputModalitie.Audio, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemAdded.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemAdded.g.cs index 7ef2ec79..b13682de 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemAdded.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemAdded.g.cs @@ -4,7 +4,11 @@ namespace tryAGI.OpenAI { /// - /// Returned when a conversation item is added. + /// Sent by the server when an Item is added to the default Conversation. This can happen in several cases:
+ /// - When the client sends a `conversation.item.create` event.
+ /// - When the input audio buffer is committed. In this case the item will be a user message containing the audio from the buffer.
+ /// - When the model is generating a Response. In this case the `conversation.item.added` event will be sent when the model starts generating a specific Item, and thus it will not yet have any content (and `status` will be `in_progress`).
+ /// The event will include the full content of the Item (except when model is generating a Response) except for audio data, which can be retrieved separately with a `conversation.item.retrieve` event if necessary. ///
public sealed partial class RealtimeServerEventConversationItemAdded { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemDone.g.cs index 6f1d43e3..84c2f7ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemDone.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemDone.g.cs @@ -4,7 +4,8 @@ namespace tryAGI.OpenAI { /// - /// Returned when a conversation item is finalized. + /// Returned when a conversation item is finalized.
+ /// The event will include the full content of the Item except for audio data, which can be retrieved separately with a `conversation.item.retrieve` event if needed. ///
public sealed partial class RealtimeServerEventConversationItemDone { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.g.cs index 8421431f..24185a60 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.g.cs @@ -8,7 +8,7 @@ namespace tryAGI.OpenAI /// /// This event is the output of audio transcription for user audio written to the
/// user audio buffer. Transcription begins when the input audio buffer is
- /// committed by the client or server (in `server_vad` mode). Transcription runs
+ /// committed by the client or server (when VAD is enabled). Transcription runs
/// asynchronously with Response creation, so this event may come before or after
/// the Response events.
/// Realtime API models accept audio natively, and thus input transcription is a
@@ -33,7 +33,7 @@ public sealed partial class RealtimeServerEventConversationItemInputAudioTranscr public required string EventId { get; set; } /// - /// The ID of the user message item containing the audio. + /// The ID of the item containing the audio that is being transcribed. /// [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -61,7 +61,7 @@ public sealed partial class RealtimeServerEventConversationItemInputAudioTranscr public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType Type { get; set; } /// - /// Usage statistics for the transcription. + /// Usage statistics for the transcription, this is billed according to the ASR model's pricing rather than the realtime model's pricing. /// [global::System.Text.Json.Serialization.JsonPropertyName("usage")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] @@ -84,7 +84,7 @@ public sealed partial class RealtimeServerEventConversationItemInputAudioTranscr /// The unique ID of the server event. /// /// - /// The ID of the user message item containing the audio. + /// The ID of the item containing the audio that is being transcribed. /// /// /// The log probabilities of the transcription. @@ -97,7 +97,7 @@ public sealed partial class RealtimeServerEventConversationItemInputAudioTranscr /// `conversation.item.input_audio_transcription.completed`. /// /// - /// Usage statistics for the transcription. + /// Usage statistics for the transcription, this is billed according to the ASR model's pricing rather than the realtime model's pricing. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.g.cs index 79679281..330e6b36 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Returned when the text value of an input audio transcription content part is updated. + /// Returned when the text value of an input audio transcription content part is updated with incremental transcription results. /// public sealed partial class RealtimeServerEventConversationItemInputAudioTranscriptionDelta { @@ -28,14 +28,14 @@ public sealed partial class RealtimeServerEventConversationItemInputAudioTranscr public required string EventId { get; set; } /// - /// The ID of the item. + /// The ID of the item containing the audio that is being transcribed. /// [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] [global::System.Text.Json.Serialization.JsonRequired] public required string ItemId { get; set; } /// - /// The log probabilities of the transcription. + /// The log probabilities of the transcription. These can be enabled by configurating the session with `"include": ["item.input_audio_transcription.logprobs"]`. Each entry in the array corresponds a log probability of which token would be selected for this chunk of transcription. This can help to identify if it was possible there were multiple valid options for a given chunk of transcription. /// [global::System.Text.Json.Serialization.JsonPropertyName("logprobs")] public global::System.Collections.Generic.IList? Logprobs { get; set; } @@ -66,10 +66,10 @@ public sealed partial class RealtimeServerEventConversationItemInputAudioTranscr /// The unique ID of the server event. /// /// - /// The ID of the item. + /// The ID of the item containing the audio that is being transcribed. /// /// - /// The log probabilities of the transcription. + /// The log probabilities of the transcription. These can be enabled by configurating the session with `"include": ["item.input_audio_transcription.logprobs"]`. Each entry in the array corresponds a log probability of which token would be selected for this chunk of transcription. This can help to identify if it was possible there were multiple valid options for a given chunk of transcription. /// /// /// The event type, must be `conversation.item.input_audio_transcription.delta`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemRetrieved.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemRetrieved.g.cs index 9625c74c..d89fd499 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemRetrieved.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemRetrieved.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Returned when a conversation item is retrieved with `conversation.item.retrieve`. + /// Returned when a conversation item is retrieved with `conversation.item.retrieve`. This is provided as a way to fetch the server's representation of an item, for example to get access to the post-processed audio data after noise cancellation and VAD. It includes the full content of the Item, including audio data. /// public sealed partial class RealtimeServerEventConversationItemRetrieved { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseDone.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseDone.g.cs index 84d114aa..554a0fae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseDone.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseDone.g.cs @@ -6,7 +6,11 @@ namespace tryAGI.OpenAI /// /// Returned when a Response is done streaming. Always emitted, no matter the
/// final state. The Response object included in the `response.done` event will
- /// include all output Items in the Response but will omit the raw audio data. + /// include all output Items in the Response but will omit the raw audio data.
+ /// Clients should check the `status` field of the Response to determine if it was successful
+ /// (`completed`) or if there was another outcome: `cancelled`, `failed`, or `incomplete`.
+ /// A response will contain all output items that were generated during the response, excluding
+ /// any audio content. ///
public sealed partial class RealtimeServerEventResponseDone { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventSessionCreated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventSessionCreated.g.cs index a1217909..488ee8f5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventSessionCreated.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventSessionCreated.g.cs @@ -1,11 +1,13 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace tryAGI.OpenAI { /// - /// Returned when a Session is created. Emitted automatically when a new
- /// connection is established as the first server event. This event will contain
+ /// Returned when a Session is created. Emitted automatically when a new
+ /// connection is established as the first server event. This event will contain
/// the default Session configuration. ///
public sealed partial class RealtimeServerEventSessionCreated @@ -18,16 +20,12 @@ public sealed partial class RealtimeServerEventSessionCreated public required string EventId { get; set; } /// - /// A session refers to a single WebSocket connection between a client and the server.
- /// Once a client creates a session, it then sends JSON-formatted events containing text and audio chunks.
- /// The server will respond in kind with audio containing voice output, a text transcript of that voice output,
- /// and function calls (if functions are provided by the client).
- /// A realtime Session represents the overall client-server interaction, and contains default configuration.
- /// It has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create). + /// The session configuration. ///
[global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.RealtimeSession Session { get; set; } + public required global::tryAGI.OpenAI.AnyOf Session { get; set; } /// /// The event type, must be `session.created`. @@ -49,12 +47,7 @@ public sealed partial class RealtimeServerEventSessionCreated /// The unique ID of the server event. /// /// - /// A session refers to a single WebSocket connection between a client and the server.
- /// Once a client creates a session, it then sends JSON-formatted events containing text and audio chunks.
- /// The server will respond in kind with audio containing voice output, a text transcript of that voice output,
- /// and function calls (if functions are provided by the client).
- /// A realtime Session represents the overall client-server interaction, and contains default configuration.
- /// It has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create). + /// The session configuration. /// /// /// The event type, must be `session.created`. @@ -64,11 +57,11 @@ public sealed partial class RealtimeServerEventSessionCreated #endif public RealtimeServerEventSessionCreated( string eventId, - global::tryAGI.OpenAI.RealtimeSession session, + global::tryAGI.OpenAI.AnyOf session, global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType type) { this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); - this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.Session = session; this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventSessionUpdated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventSessionUpdated.g.cs index d55671f3..cfa3f681 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventSessionUpdated.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventSessionUpdated.g.cs @@ -1,10 +1,12 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace tryAGI.OpenAI { /// - /// Returned when a session is updated with a `session.update` event, unless
+ /// Returned when a session is updated with a `session.update` event, unless
/// there is an error. ///
public sealed partial class RealtimeServerEventSessionUpdated @@ -17,16 +19,12 @@ public sealed partial class RealtimeServerEventSessionUpdated public required string EventId { get; set; } /// - /// A session refers to a single WebSocket connection between a client and the server.
- /// Once a client creates a session, it then sends JSON-formatted events containing text and audio chunks.
- /// The server will respond in kind with audio containing voice output, a text transcript of that voice output,
- /// and function calls (if functions are provided by the client).
- /// A realtime Session represents the overall client-server interaction, and contains default configuration.
- /// It has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create). + /// The session configuration. ///
[global::System.Text.Json.Serialization.JsonPropertyName("session")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.RealtimeSession Session { get; set; } + public required global::tryAGI.OpenAI.AnyOf Session { get; set; } /// /// The event type, must be `session.updated`. @@ -48,12 +46,7 @@ public sealed partial class RealtimeServerEventSessionUpdated /// The unique ID of the server event. /// /// - /// A session refers to a single WebSocket connection between a client and the server.
- /// Once a client creates a session, it then sends JSON-formatted events containing text and audio chunks.
- /// The server will respond in kind with audio containing voice output, a text transcript of that voice output,
- /// and function calls (if functions are provided by the client).
- /// A realtime Session represents the overall client-server interaction, and contains default configuration.
- /// It has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create). + /// The session configuration. /// /// /// The event type, must be `session.updated`. @@ -63,11 +56,11 @@ public sealed partial class RealtimeServerEventSessionUpdated #endif public RealtimeServerEventSessionUpdated( string eventId, - global::tryAGI.OpenAI.RealtimeSession session, + global::tryAGI.OpenAI.AnyOf session, global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType type) { this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); - this.Session = session ?? throw new global::System.ArgumentNullException(nameof(session)); + this.Session = session; this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventTranscriptionSessionCreated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventTranscriptionSessionCreated.g.cs index 06ed7b47..400774b6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventTranscriptionSessionCreated.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventTranscriptionSessionCreated.g.cs @@ -16,7 +16,10 @@ public sealed partial class RealtimeServerEventTranscriptionSessionCreated public required string EventId { get; set; } /// - /// A Realtime transcription session configuration object. + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. ///
[global::System.Text.Json.Serialization.JsonPropertyName("session")] [global::System.Text.Json.Serialization.JsonRequired] @@ -42,7 +45,10 @@ public sealed partial class RealtimeServerEventTranscriptionSessionCreated /// The unique ID of the server event. /// /// - /// A Realtime transcription session configuration object. + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. /// /// /// The event type, must be `transcription_session.created`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventTranscriptionSessionUpdated.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventTranscriptionSessionUpdated.g.cs index 0aaf0a21..cf4d9cb3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventTranscriptionSessionUpdated.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventTranscriptionSessionUpdated.g.cs @@ -17,7 +17,10 @@ public sealed partial class RealtimeServerEventTranscriptionSessionUpdated public required string EventId { get; set; } /// - /// A Realtime transcription session configuration object. + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. ///
[global::System.Text.Json.Serialization.JsonPropertyName("session")] [global::System.Text.Json.Serialization.JsonRequired] @@ -43,7 +46,10 @@ public sealed partial class RealtimeServerEventTranscriptionSessionUpdated /// The unique ID of the server event. /// /// - /// A Realtime transcription session configuration object. + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. /// /// /// The event type, must be `transcription_session.updated`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequest.g.cs index 9021c7c8..dbd65427 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequest.g.cs @@ -6,28 +6,33 @@ namespace tryAGI.OpenAI { /// - /// Realtime session object configuration. + /// A new Realtime session configuration, with an ephemeral key. Default TTL
+ /// for keys is one minute. ///
public sealed partial class RealtimeSessionCreateRequest { /// - /// Configuration for input and output audio. + /// Ephemeral key returned by the API. /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio? Audio { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("client_secret")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret ClientSecret { get; set; } /// - /// Configuration options for the generated client secret. + /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("client_secret")] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? ClientSecret { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("input_audio_format")] + public string? InputAudioFormat { get; set; } /// - /// Additional fields to include in server outputs.
- /// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// 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 and should be treated as rough guidance
+ /// rather than the representation understood by the model. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("include")] - public global::System.Collections.Generic.IList? Include { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("input_audio_transcription")] + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? InputAudioTranscription { get; set; } /// /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
@@ -42,24 +47,22 @@ public sealed partial class RealtimeSessionCreateRequest /// limit output tokens, or `inf` for the maximum available tokens for a
/// given model. Defaults to `inf`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("max_output_tokens")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] - public global::tryAGI.OpenAI.AnyOf? MaxOutputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("max_response_output_tokens")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? MaxResponseOutputTokens { get; set; } /// - /// The Realtime model used for this session. + /// The set of modalities the model can respond with. To disable audio,
+ /// set this to ["text"]. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.AnyOf Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modalities")] + public global::System.Collections.Generic.IList? Modalities { get; set; } /// - /// The set of modalities the model can respond with. To disable audio,
- /// set this to ["text"]. + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("output_modalities")] - public global::System.Collections.Generic.IList? OutputModalities { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("output_audio_format")] + public string? OutputAudioFormat { get; set; } /// /// Reference to a prompt template and its variables.
@@ -69,26 +72,32 @@ public sealed partial class RealtimeSessionCreateRequest public global::tryAGI.OpenAI.Prompt2? Prompt { get; set; } /// - /// Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.
- /// Default Value: 0.8 + /// The speed of the model's spoken response. 1.0 is the default speed. 0.25 is
+ /// the minimum speed. 1.5 is the maximum speed. This value can only be changed
+ /// in between model turns, not while a response is in progress.
+ /// Default Value: 1 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("speed")] + public double? Speed { get; set; } + + /// + /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. /// [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] public double? Temperature { get; set; } /// - /// How the model chooses tools. Provide one of the string modes or force a specific
- /// function/MCP tool.
- /// Default Value: auto + /// How the model chooses tools. Options are `auto`, `none`, `required`, or
+ /// specify a function. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] - public global::tryAGI.OpenAI.AnyOf? ToolChoice { get; set; } + public string? ToolChoice { get; set; } /// - /// Tools available to the model. + /// Tools (functions) available to the model. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// Configuration options for tracing. Set to null to disable tracing. Once
@@ -102,19 +111,27 @@ public sealed partial class RealtimeSessionCreateRequest /// /// Controls how the realtime conversation is truncated prior to model inference.
- /// The default is `auto`. When set to `retention_ratio`, the server retains a
- /// fraction of the conversation tokens prior to the instructions. + /// The default is `auto`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("truncation")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter))] public global::tryAGI.OpenAI.RealtimeTruncation? Truncation { get; set; } /// - /// The type of session to create. Always `realtime` for the Realtime API. + /// Configuration for turn detection. Can be set to `null` to turn off. Server
+ /// VAD means that the model will detect the start and end of speech based on
+ /// audio volume and respond at the end of user speech. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestType Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("turn_detection")] + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? TurnDetection { get; set; } + + /// + /// Example: ash + /// + /// ash + [global::System.Text.Json.Serialization.JsonPropertyName("voice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter))] + public global::tryAGI.OpenAI.VoiceIdsShared? Voice { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -125,48 +142,55 @@ public sealed partial class RealtimeSessionCreateRequest /// /// Initializes a new instance of the class. /// - /// - /// Configuration for input and output audio. - /// /// - /// Configuration options for the generated client secret. + /// Ephemeral key returned by the API. /// - /// - /// Additional fields to include in server outputs.
- /// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// + /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// + /// + /// 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 and should be treated as rough guidance
+ /// rather than the representation understood by the model. /// /// /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
/// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. /// - /// + /// /// Maximum number of output tokens for a single assistant response,
/// inclusive of tool calls. Provide an integer between 1 and 4096 to
/// limit output tokens, or `inf` for the maximum available tokens for a
/// given model. Defaults to `inf`. /// - /// - /// The Realtime model used for this session. - /// - /// + /// /// The set of modalities the model can respond with. To disable audio,
/// set this to ["text"]. /// + /// + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// /// /// Reference to a prompt template and its variables.
/// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). /// + /// + /// The speed of the model's spoken response. 1.0 is the default speed. 0.25 is
+ /// the minimum speed. 1.5 is the maximum speed. This value can only be changed
+ /// in between model turns, not while a response is in progress.
+ /// Default Value: 1 + /// /// - /// Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.
- /// Default Value: 0.8 + /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. /// /// - /// How the model chooses tools. Provide one of the string modes or force a specific
- /// function/MCP tool.
- /// Default Value: auto + /// How the model chooses tools. Options are `auto`, `none`, `required`, or
+ /// specify a function. /// /// - /// Tools available to the model. + /// Tools (functions) available to the model. /// /// /// Configuration options for tracing. Set to null to disable tracing. Once
@@ -176,45 +200,53 @@ public sealed partial class RealtimeSessionCreateRequest /// /// /// Controls how the realtime conversation is truncated prior to model inference.
- /// The default is `auto`. When set to `retention_ratio`, the server retains a
- /// fraction of the conversation tokens prior to the instructions. + /// The default is `auto`. + /// + /// + /// Configuration for turn detection. Can be set to `null` to turn off. Server
+ /// VAD means that the model will detect the start and end of speech based on
+ /// audio volume and respond at the end of user speech. /// - /// - /// The type of session to create. Always `realtime` for the Realtime API. + /// + /// Example: ash /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeSessionCreateRequest( - global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio? audio, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? clientSecret, - global::System.Collections.Generic.IList? include, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret clientSecret, + string? inputAudioFormat, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? inputAudioTranscription, string? instructions, - global::tryAGI.OpenAI.AnyOf? maxOutputTokens, - global::System.Collections.Generic.IList? outputModalities, + global::tryAGI.OpenAI.AnyOf? maxResponseOutputTokens, + global::System.Collections.Generic.IList? modalities, + string? outputAudioFormat, global::tryAGI.OpenAI.Prompt2? prompt, + double? speed, double? temperature, - global::tryAGI.OpenAI.AnyOf? toolChoice, - global::System.Collections.Generic.IList? tools, + string? toolChoice, + global::System.Collections.Generic.IList? tools, global::tryAGI.OpenAI.AnyOf? tracing, global::tryAGI.OpenAI.RealtimeTruncation? truncation, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestType type) + global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? turnDetection, + global::tryAGI.OpenAI.VoiceIdsShared? voice) { - this.Model = model; - this.Audio = audio; - this.ClientSecret = clientSecret; - this.Include = include; + this.ClientSecret = clientSecret ?? throw new global::System.ArgumentNullException(nameof(clientSecret)); + this.InputAudioFormat = inputAudioFormat; + this.InputAudioTranscription = inputAudioTranscription; this.Instructions = instructions; - this.MaxOutputTokens = maxOutputTokens; - this.OutputModalities = outputModalities; + this.MaxResponseOutputTokens = maxResponseOutputTokens; + this.Modalities = modalities; + this.OutputAudioFormat = outputAudioFormat; this.Prompt = prompt; + this.Speed = speed; this.Temperature = temperature; this.ToolChoice = toolChoice; this.Tools = tools; this.Tracing = tracing; this.Truncation = truncation; - this.Type = type; + this.TurnDetection = turnDetection; + this.Voice = voice; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputFormat.g.cs deleted file mode 100644 index f4e1cdd5..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputFormat.g.cs +++ /dev/null @@ -1,60 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
- /// For `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,
- /// single channel (mono), and little-endian byte order.
- /// Default Value: pcm16 - ///
- public enum RealtimeSessionCreateRequestAudioInputFormat - { - /// - /// - /// - Pcm16, - /// - /// - /// - G711Ulaw, - /// - /// - /// - G711Alaw, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RealtimeSessionCreateRequestAudioInputFormatExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RealtimeSessionCreateRequestAudioInputFormat value) - { - return value switch - { - RealtimeSessionCreateRequestAudioInputFormat.Pcm16 => "pcm16", - RealtimeSessionCreateRequestAudioInputFormat.G711Ulaw => "g711_ulaw", - RealtimeSessionCreateRequestAudioInputFormat.G711Alaw => "g711_alaw", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RealtimeSessionCreateRequestAudioInputFormat? ToEnum(string value) - { - return value switch - { - "pcm16" => RealtimeSessionCreateRequestAudioInputFormat.Pcm16, - "g711_ulaw" => RealtimeSessionCreateRequestAudioInputFormat.G711Ulaw, - "g711_alaw" => RealtimeSessionCreateRequestAudioInputFormat.G711Alaw, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscription.g.cs deleted file mode 100644 index b6c3207b..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscription.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// 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://platform.openai.com/docs/api-reference/audio/createTranscription) 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. - /// - public sealed partial class RealtimeSessionCreateRequestAudioInputTranscription - { - /// - /// The language of the input audio. Supplying the input language in
- /// [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format
- /// will improve accuracy and latency. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language")] - public string? Language { get; set; } - - /// - /// The model to use for transcription. Current options are
- /// `whisper-1`, `gpt-4o-transcribe-latest`, `gpt-4o-mini-transcribe`, `gpt-4o-transcribe`,
- /// and `gpt-4o-transcribe-diarize`. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTranscriptionModelJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel? Model { get; set; } - - /// - /// An optional text to guide the model's style or continue a previous audio
- /// segment.
- /// For `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
- /// For `gpt-4o-transcribe` models, the prompt is a free text string, for example "expect words related to technology". - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - public string? Prompt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The language of the input audio. Supplying the input language in
- /// [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format
- /// will improve accuracy and latency. - /// - /// - /// The model to use for transcription. Current options are
- /// `whisper-1`, `gpt-4o-transcribe-latest`, `gpt-4o-mini-transcribe`, `gpt-4o-transcribe`,
- /// and `gpt-4o-transcribe-diarize`. - /// - /// - /// An optional text to guide the model's style or continue a previous audio
- /// segment.
- /// For `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
- /// For `gpt-4o-transcribe` models, the prompt is a free text string, for example "expect words related to technology". - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RealtimeSessionCreateRequestAudioInputTranscription( - string? language, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscriptionModel? model, - string? prompt) - { - this.Language = language; - this.Model = model; - this.Prompt = prompt; - } - - /// - /// Initializes a new instance of the class. - /// - public RealtimeSessionCreateRequestAudioInputTranscription() - { - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscriptionModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscriptionModel.g.cs deleted file mode 100644 index bf1a07f9..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscriptionModel.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// The model to use for transcription. Current options are
- /// `whisper-1`, `gpt-4o-transcribe-latest`, `gpt-4o-mini-transcribe`, `gpt-4o-transcribe`,
- /// and `gpt-4o-transcribe-diarize`. - ///
- public enum RealtimeSessionCreateRequestAudioInputTranscriptionModel - { - /// - /// - /// - Whisper1, - /// - /// - /// - Gpt4oTranscribeLatest, - /// - /// - /// - Gpt4oMiniTranscribe, - /// - /// - /// - Gpt4oTranscribe, - /// - /// - /// - Gpt4oTranscribeDiarize, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RealtimeSessionCreateRequestAudioInputTranscriptionModelExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RealtimeSessionCreateRequestAudioInputTranscriptionModel value) - { - return value switch - { - RealtimeSessionCreateRequestAudioInputTranscriptionModel.Whisper1 => "whisper-1", - RealtimeSessionCreateRequestAudioInputTranscriptionModel.Gpt4oTranscribeLatest => "gpt-4o-transcribe-latest", - RealtimeSessionCreateRequestAudioInputTranscriptionModel.Gpt4oMiniTranscribe => "gpt-4o-mini-transcribe", - RealtimeSessionCreateRequestAudioInputTranscriptionModel.Gpt4oTranscribe => "gpt-4o-transcribe", - RealtimeSessionCreateRequestAudioInputTranscriptionModel.Gpt4oTranscribeDiarize => "gpt-4o-transcribe-diarize", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RealtimeSessionCreateRequestAudioInputTranscriptionModel? ToEnum(string value) - { - return value switch - { - "whisper-1" => RealtimeSessionCreateRequestAudioInputTranscriptionModel.Whisper1, - "gpt-4o-transcribe-latest" => RealtimeSessionCreateRequestAudioInputTranscriptionModel.Gpt4oTranscribeLatest, - "gpt-4o-mini-transcribe" => RealtimeSessionCreateRequestAudioInputTranscriptionModel.Gpt4oMiniTranscribe, - "gpt-4o-transcribe" => RealtimeSessionCreateRequestAudioInputTranscriptionModel.Gpt4oTranscribe, - "gpt-4o-transcribe-diarize" => RealtimeSessionCreateRequestAudioInputTranscriptionModel.Gpt4oTranscribeDiarize, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecret.g.cs index 577e8771..c999b2c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecret.g.cs @@ -4,15 +4,26 @@ namespace tryAGI.OpenAI { /// - /// Configuration options for the generated client secret. + /// Ephemeral key returned by the API. /// public sealed partial class RealtimeSessionCreateRequestClientSecret { /// - /// Configuration for the ephemeral token expiration. + /// Timestamp for when the token expires. Currently, all tokens expire
+ /// after one minute. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("expires_after")] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter? ExpiresAfter { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ExpiresAt { get; set; } + + /// + /// Ephemeral key usable in client environments to authenticate connections
+ /// to the Realtime API. Use this in client-side environments rather than
+ /// a standard API token, which should only be used server-side. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -23,16 +34,24 @@ public sealed partial class RealtimeSessionCreateRequestClientSecret /// /// Initializes a new instance of the class. /// - /// - /// Configuration for the ephemeral token expiration. + /// + /// Timestamp for when the token expires. Currently, all tokens expire
+ /// after one minute. + /// + /// + /// Ephemeral key usable in client environments to authenticate connections
+ /// to the Realtime API. Use this in client-side environments rather than
+ /// a standard API token, which should only be used server-side. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeSessionCreateRequestClientSecret( - global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter? expiresAfter) + int expiresAt, + string value) { - this.ExpiresAfter = expiresAfter; + this.ExpiresAt = expiresAt; + this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfter.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfter.Json.g.cs deleted file mode 100644 index f50f95ba..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfter.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI -{ - public sealed partial class RealtimeSessionCreateRequestClientSecretExpiresAfter - { - /// - /// 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 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) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter; - } - - /// - /// 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.RealtimeSessionCreateRequestClientSecretExpiresAfter? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - 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.RealtimeSessionCreateRequestClientSecretExpiresAfter), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter; - } - - /// - /// 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) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfter.g.cs deleted file mode 100644 index 731113be..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestClientSecretExpiresAfter.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// Configuration for the ephemeral token expiration. - /// - public sealed partial class RealtimeSessionCreateRequestClientSecretExpiresAfter - { - /// - /// The anchor point for the ephemeral token expiration. Only `created_at` is currently supported. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("anchor")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchorJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor Anchor { get; set; } - - /// - /// The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200`.
- /// Default Value: 600 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("seconds")] - public int? Seconds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The anchor point for the ephemeral token expiration. Only `created_at` is currently supported. - /// - /// - /// The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200`.
- /// Default Value: 600 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RealtimeSessionCreateRequestClientSecretExpiresAfter( - global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor anchor, - int? seconds) - { - this.Anchor = anchor; - this.Seconds = seconds; - } - - /// - /// Initializes a new instance of the class. - /// - public RealtimeSessionCreateRequestClientSecretExpiresAfter() - { - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudio.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGA.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudio.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGA.Json.g.cs index 4afd6fa4..f2fa913d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudio.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGA.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestAudio + public sealed partial class RealtimeSessionCreateRequestGA { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestAudio? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestAudio), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestGA.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGA.g.cs new file mode 100644 index 00000000..8e86c6e1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGA.g.cs @@ -0,0 +1,204 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Realtime session object configuration. + /// + public sealed partial class RealtimeSessionCreateRequestGA + { + /// + /// Configuration for input and output audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Audio { get; set; } + + /// + /// Additional fields to include in server outputs.
+ /// `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("include")] + public global::System.Collections.Generic.IList? Include { get; set; } + + /// + /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
+ /// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// Maximum number of output tokens for a single assistant response,
+ /// inclusive of tool calls. Provide an integer between 1 and 4096 to
+ /// limit output tokens, or `inf` for the maximum available tokens for a
+ /// given model. Defaults to `inf`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_output_tokens")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? MaxOutputTokens { get; set; } + + /// + /// The Realtime model used for this session. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Model { get; set; } + + /// + /// The set of modalities the model can respond with. It defaults to `["audio"]`, indicating
+ /// that the model will respond with audio plus a transcript. `["text"]` can be used to make
+ /// the model respond with text only. It is not possible to request both `text` and `audio` at the same time.
+ /// Default Value: [audio] + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("output_modalities")] + public global::System.Collections.Generic.IList? OutputModalities { get; set; } + + /// + /// Reference to a prompt template and its variables.
+ /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + public global::tryAGI.OpenAI.Prompt2? Prompt { get; set; } + + /// + /// How the model chooses tools. Provide one of the string modes or force a specific
+ /// function/MCP tool.
+ /// Default Value: auto + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? ToolChoice { get; set; } + + /// + /// Tools available to the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// Realtime API can write session traces to the [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once
+ /// tracing is enabled for a session, the configuration cannot be modified.
+ /// `auto` will create a trace for the session with default values for the
+ /// workflow name, group id, and metadata. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tracing")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Tracing { get; set; } + + /// + /// Controls how the realtime conversation is truncated prior to model inference.
+ /// The default is `auto`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("truncation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTruncation? Truncation { get; set; } + + /// + /// The type of session to create. Always `realtime` for the Realtime API. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGATypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Configuration for input and output audio. + /// + /// + /// Additional fields to include in server outputs.
+ /// `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// + /// + /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
+ /// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. + /// + /// + /// Maximum number of output tokens for a single assistant response,
+ /// inclusive of tool calls. Provide an integer between 1 and 4096 to
+ /// limit output tokens, or `inf` for the maximum available tokens for a
+ /// given model. Defaults to `inf`. + /// + /// + /// The Realtime model used for this session. + /// + /// + /// The set of modalities the model can respond with. It defaults to `["audio"]`, indicating
+ /// that the model will respond with audio plus a transcript. `["text"]` can be used to make
+ /// the model respond with text only. It is not possible to request both `text` and `audio` at the same time.
+ /// Default Value: [audio] + /// + /// + /// Reference to a prompt template and its variables.
+ /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). + /// + /// + /// How the model chooses tools. Provide one of the string modes or force a specific
+ /// function/MCP tool.
+ /// Default Value: auto + /// + /// + /// Tools available to the model. + /// + /// + /// Realtime API can write session traces to the [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once
+ /// tracing is enabled for a session, the configuration cannot be modified.
+ /// `auto` will create a trace for the session with default values for the
+ /// workflow name, group id, and metadata. + /// + /// + /// Controls how the realtime conversation is truncated prior to model inference.
+ /// The default is `auto`. + /// + /// + /// The type of session to create. Always `realtime` for the Realtime API. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeSessionCreateRequestGA( + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? audio, + global::System.Collections.Generic.IList? include, + string? instructions, + global::tryAGI.OpenAI.AnyOf? maxOutputTokens, + global::tryAGI.OpenAI.AnyOf? model, + global::System.Collections.Generic.IList? outputModalities, + global::tryAGI.OpenAI.Prompt2? prompt, + global::tryAGI.OpenAI.AnyOf? toolChoice, + global::System.Collections.Generic.IList? tools, + global::tryAGI.OpenAI.AnyOf? tracing, + global::tryAGI.OpenAI.RealtimeTruncation? truncation, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType type) + { + this.Audio = audio; + this.Include = include; + this.Instructions = instructions; + this.MaxOutputTokens = maxOutputTokens; + this.Model = model; + this.OutputModalities = outputModalities; + this.Prompt = prompt; + this.ToolChoice = toolChoice; + this.Tools = tools; + this.Tracing = tracing; + this.Truncation = truncation; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeSessionCreateRequestGA() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTool.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudio.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTool.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudio.Json.g.cs index 42dbe388..0018c9d9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTool.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudio.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateResponseTool + public sealed partial class RealtimeSessionCreateRequestGAAudio { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateResponseTool? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTool), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseTool; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateResponseTool? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateResponseTool), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseTool; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudio.g.cs similarity index 74% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudio.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudio.g.cs index e8993ec8..d9027f30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudio.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudio.g.cs @@ -6,19 +6,19 @@ namespace tryAGI.OpenAI /// /// Configuration for input and output audio. /// - public sealed partial class RealtimeSessionCreateRequestAudio + public sealed partial class RealtimeSessionCreateRequestGAAudio { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInput? Input { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Input { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutput? Output { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Output { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,25 +27,25 @@ public sealed partial class RealtimeSessionCreateRequestAudio 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. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateRequestAudio( - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInput? input, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutput? output) + public RealtimeSessionCreateRequestGAAudio( + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? input, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? output) { this.Input = input; this.Output = output; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateRequestAudio() + public RealtimeSessionCreateRequestGAAudio() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInput.Json.g.cs new file mode 100644 index 00000000..8d6f31c1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeSessionCreateRequestGAAudioInput + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput; + } + + /// + /// 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.RealtimeSessionCreateRequestGAAudioInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeSessionCreateRequestGAAudioInput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInput.g.cs similarity index 58% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInput.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInput.g.cs index 2a6992fc..358ea8a5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInput.g.cs @@ -6,17 +6,14 @@ namespace tryAGI.OpenAI /// /// /// - public sealed partial class RealtimeSessionCreateRequestAudioInput + public sealed partial class RealtimeSessionCreateRequestGAAudioInput { /// - /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
- /// For `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,
- /// single channel (mono), and little-endian byte order.
- /// Default Value: pcm16 + /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputFormatJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat? Format { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter))] + public global::tryAGI.OpenAI.RealtimeAudioFormats? Format { get; set; } /// /// Configuration for input audio noise reduction. This can be set to `null` to turn off.
@@ -24,13 +21,13 @@ public sealed partial class RealtimeSessionCreateRequestAudioInput /// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. ///
[global::System.Text.Json.Serialization.JsonPropertyName("noise_reduction")] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReduction? NoiseReduction { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? NoiseReduction { get; set; } /// - /// 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://platform.openai.com/docs/api-reference/audio/createTranscription) 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. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscription? Transcription { get; set; } + public global::tryAGI.OpenAI.AudioTranscription? Transcription { get; set; } /// /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
@@ -38,7 +35,7 @@ public sealed partial class RealtimeSessionCreateRequestAudioInput /// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency. ///
[global::System.Text.Json.Serialization.JsonPropertyName("turn_detection")] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetection? TurnDetection { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection? TurnDetection { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -47,22 +44,15 @@ public sealed partial class RealtimeSessionCreateRequestAudioInput 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. /// - /// - /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
- /// For `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,
- /// single channel (mono), and little-endian byte order.
- /// Default Value: pcm16 - /// + /// /// /// Configuration for input audio noise reduction. This can be set to `null` to turn off.
/// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
/// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. /// - /// - /// 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://platform.openai.com/docs/api-reference/audio/createTranscription) 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. - /// + /// /// /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
/// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
@@ -71,11 +61,11 @@ public sealed partial class RealtimeSessionCreateRequestAudioInput #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateRequestAudioInput( - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputFormat? format, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReduction? noiseReduction, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscription? transcription, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetection? turnDetection) + public RealtimeSessionCreateRequestGAAudioInput( + global::tryAGI.OpenAI.RealtimeAudioFormats? format, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? noiseReduction, + global::tryAGI.OpenAI.AudioTranscription? transcription, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection? turnDetection) { this.Format = format; this.NoiseReduction = noiseReduction; @@ -84,9 +74,9 @@ public RealtimeSessionCreateRequestAudioInput( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateRequestAudioInput() + public RealtimeSessionCreateRequestGAAudioInput() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputNoiseReduction.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputNoiseReduction.Json.g.cs new file mode 100644 index 00000000..bf43ce0f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputNoiseReduction.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeSessionCreateRequestGAAudioInputNoiseReduction + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction; + } + + /// + /// 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.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeSessionCreateRequestGAAudioInputNoiseReduction), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReduction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputNoiseReduction.g.cs similarity index 73% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReduction.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputNoiseReduction.g.cs index dd801f2a..128cf4e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReduction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputNoiseReduction.g.cs @@ -8,14 +8,14 @@ namespace tryAGI.OpenAI /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
/// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. ///
- public sealed partial class RealtimeSessionCreateRequestAudioInputNoiseReduction + public sealed partial class RealtimeSessionCreateRequestGAAudioInputNoiseReduction { /// /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputNoiseReductionTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter))] + public global::tryAGI.OpenAI.NoiseReductionType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -24,7 +24,7 @@ public sealed partial class RealtimeSessionCreateRequestAudioInputNoiseReduction 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. /// /// /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. @@ -32,16 +32,16 @@ public sealed partial class RealtimeSessionCreateRequestAudioInputNoiseReduction #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateRequestAudioInputNoiseReduction( - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReductionType? type) + public RealtimeSessionCreateRequestGAAudioInputNoiseReduction( + global::tryAGI.OpenAI.NoiseReductionType? type) { this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateRequestAudioInputNoiseReduction() + public RealtimeSessionCreateRequestGAAudioInputNoiseReduction() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReduction.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetection.Json.g.cs similarity index 86% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReduction.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetection.Json.g.cs index f297a484..5dc0f070 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputNoiseReduction.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetection.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestAudioInputNoiseReduction + public sealed partial class RealtimeSessionCreateRequestGAAudioInputTurnDetection { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReduction? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReduction), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReduction; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestAudioInputNoiseReduction? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestAudioInputNoiseReduction), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputNoiseReduction; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetection; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestAudioInputTurnDetection.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetection.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetection.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetection.g.cs index c055c20d..b50b60ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetection.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetection.g.cs @@ -8,7 +8,7 @@ namespace tryAGI.OpenAI /// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
/// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency. ///
- public sealed partial class RealtimeSessionCreateRequestAudioInputTurnDetection + public sealed partial class RealtimeSessionCreateRequestGAAudioInputTurnDetection { /// /// Whether or not to automatically generate a response when a VAD stop event occurs.
@@ -18,12 +18,12 @@ public sealed partial class RealtimeSessionCreateRequestAudioInputTurnDetection public bool? CreateResponse { get; set; } /// - /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.
+ /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.
/// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("eagerness")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness? Eagerness { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessJsonConverter))] + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness? Eagerness { get; set; } /// /// Optional idle timeout after which turn detection will auto-timeout when
@@ -68,8 +68,8 @@ public sealed partial class RealtimeSessionCreateRequestAudioInputTurnDetection /// Default Value: server_vad ///
[global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioInputTurnDetectionTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -78,14 +78,14 @@ public sealed partial class RealtimeSessionCreateRequestAudioInputTurnDetection 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. /// /// /// Whether or not to automatically generate a response when a VAD stop event occurs.
/// Default Value: true /// /// - /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.
+ /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.
/// Default Value: auto /// /// @@ -118,15 +118,15 @@ public sealed partial class RealtimeSessionCreateRequestAudioInputTurnDetection #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateRequestAudioInputTurnDetection( + public RealtimeSessionCreateRequestGAAudioInputTurnDetection( bool? createResponse, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness? eagerness, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness? eagerness, int? idleTimeoutMs, bool? interruptResponse, int? prefixPaddingMs, int? silenceDurationMs, double? threshold, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTurnDetectionType? type) + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType? type) { this.CreateResponse = createResponse; this.Eagerness = eagerness; @@ -139,9 +139,9 @@ public RealtimeSessionCreateRequestAudioInputTurnDetection( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateRequestAudioInputTurnDetection() + public RealtimeSessionCreateRequestGAAudioInputTurnDetection() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs new file mode 100644 index 00000000..67a2aaa4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.
+ /// Default Value: auto + ///
+ public enum RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness + { + /// + /// + /// + Low, + /// + /// + /// + Medium, + /// + /// + /// + High, + /// + /// + /// + Auto, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness value) + { + return value switch + { + RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.Low => "low", + RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.Medium => "medium", + RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.High => "high", + RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.Auto => "auto", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness? ToEnum(string value) + { + return value switch + { + "low" => RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.Low, + "medium" => RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.Medium, + "high" => RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.High, + "auto" => RealtimeSessionCreateRequestGAAudioInputTurnDetectionEagerness.Auto, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputNoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.g.cs similarity index 51% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputNoiseReductionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.g.cs index 420f0f63..b9a30a68 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputNoiseReductionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.g.cs @@ -4,46 +4,47 @@ namespace tryAGI.OpenAI { /// - /// + /// Type of turn detection.
+ /// Default Value: server_vad ///
- public enum RealtimeSessionCreateResponseAudioInputNoiseReductionType + public enum RealtimeSessionCreateRequestGAAudioInputTurnDetectionType { /// /// /// - NearField, + ServerVad, /// /// /// - FarField, + SemanticVad, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateResponseAudioInputNoiseReductionTypeExtensions + public static class RealtimeSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateResponseAudioInputNoiseReductionType value) + public static string ToValueString(this RealtimeSessionCreateRequestGAAudioInputTurnDetectionType value) { return value switch { - RealtimeSessionCreateResponseAudioInputNoiseReductionType.NearField => "near_field", - RealtimeSessionCreateResponseAudioInputNoiseReductionType.FarField => "far_field", + RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.ServerVad => "server_vad", + RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.SemanticVad => "semantic_vad", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateResponseAudioInputNoiseReductionType? ToEnum(string value) + public static RealtimeSessionCreateRequestGAAudioInputTurnDetectionType? ToEnum(string value) { return value switch { - "near_field" => RealtimeSessionCreateResponseAudioInputNoiseReductionType.NearField, - "far_field" => RealtimeSessionCreateResponseAudioInputNoiseReductionType.FarField, + "server_vad" => RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.ServerVad, + "semantic_vad" => RealtimeSessionCreateRequestGAAudioInputTurnDetectionType.SemanticVad, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioOutput.Json.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutput.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioOutput.Json.g.cs index 8c2b3525..4a0047a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutput.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioOutput.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestAudioOutput + public sealed partial class RealtimeSessionCreateRequestGAAudioOutput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutput? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutput), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutput; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestAudioOutput? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestAudioOutput), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutput; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestAudioOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioOutput.g.cs similarity index 55% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutput.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioOutput.g.cs index 41fdb799..0c1dbe48 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAAudioOutput.g.cs @@ -6,21 +6,20 @@ namespace tryAGI.OpenAI /// /// /// - public sealed partial class RealtimeSessionCreateRequestAudioOutput + public sealed partial class RealtimeSessionCreateRequestGAAudioOutput { /// - /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
- /// For `pcm16`, output audio is sampled at a rate of 24kHz.
- /// Default Value: pcm16 + /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestAudioOutputFormatJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat? Format { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter))] + public global::tryAGI.OpenAI.RealtimeAudioFormats? Format { get; set; } /// - /// The speed of the model's spoken response. 1.0 is the default speed. 0.25 is
- /// the minimum speed. 1.5 is the maximum speed. This value can only be changed
- /// in between model turns, not while a response is in progress.
+ /// The speed of the model's spoken response as a multiple of the original speed.
+ /// 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.
+ /// This parameter is a post-processing adjustment to the audio after it is generated, it's
+ /// also possible to prompt the model to speak faster or slower.
/// Default Value: 1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("speed")] @@ -41,17 +40,14 @@ public sealed partial class RealtimeSessionCreateRequestAudioOutput 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. /// - /// - /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
- /// For `pcm16`, output audio is sampled at a rate of 24kHz.
- /// Default Value: pcm16 - /// + /// /// - /// The speed of the model's spoken response. 1.0 is the default speed. 0.25 is
- /// the minimum speed. 1.5 is the maximum speed. This value can only be changed
- /// in between model turns, not while a response is in progress.
+ /// The speed of the model's spoken response as a multiple of the original speed.
+ /// 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.
+ /// This parameter is a post-processing adjustment to the audio after it is generated, it's
+ /// also possible to prompt the model to speak faster or slower.
/// Default Value: 1 /// /// @@ -60,8 +56,8 @@ public sealed partial class RealtimeSessionCreateRequestAudioOutput #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateRequestAudioOutput( - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioOutputFormat? format, + public RealtimeSessionCreateRequestGAAudioOutput( + global::tryAGI.OpenAI.RealtimeAudioFormats? format, double? speed, global::tryAGI.OpenAI.VoiceIdsShared? voice) { @@ -71,9 +67,9 @@ public RealtimeSessionCreateRequestAudioOutput( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateRequestAudioOutput() + public RealtimeSessionCreateRequestGAAudioOutput() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestIncludeItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAIncludeItem.g.cs similarity index 66% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestIncludeItem.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAIncludeItem.g.cs index 62dcdf88..78800746 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestIncludeItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAIncludeItem.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public enum RealtimeSessionCreateRequestIncludeItem + public enum RealtimeSessionCreateRequestGAIncludeItem { /// /// @@ -17,27 +17,27 @@ public enum RealtimeSessionCreateRequestIncludeItem /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestIncludeItemExtensions + public static class RealtimeSessionCreateRequestGAIncludeItemExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestIncludeItem value) + public static string ToValueString(this RealtimeSessionCreateRequestGAIncludeItem value) { return value switch { - RealtimeSessionCreateRequestIncludeItem.ItemInputAudioTranscriptionLogprobs => "item.input_audio_transcription.logprobs", + RealtimeSessionCreateRequestGAIncludeItem.ItemInputAudioTranscriptionLogprobs => "item.input_audio_transcription.logprobs", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestIncludeItem? ToEnum(string value) + public static RealtimeSessionCreateRequestGAIncludeItem? ToEnum(string value) { return value switch { - "item.input_audio_transcription.logprobs" => RealtimeSessionCreateRequestIncludeItem.ItemInputAudioTranscriptionLogprobs, + "item.input_audio_transcription.logprobs" => RealtimeSessionCreateRequestGAIncludeItem.ItemInputAudioTranscriptionLogprobs, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestMaxOutputTokens.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAMaxOutputTokens.g.cs similarity index 66% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestMaxOutputTokens.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAMaxOutputTokens.g.cs index e10b46e3..61694cde 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestMaxOutputTokens.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAMaxOutputTokens.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public enum RealtimeSessionCreateRequestMaxOutputTokens + public enum RealtimeSessionCreateRequestGAMaxOutputTokens { /// /// @@ -17,27 +17,27 @@ public enum RealtimeSessionCreateRequestMaxOutputTokens /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestMaxOutputTokensExtensions + public static class RealtimeSessionCreateRequestGAMaxOutputTokensExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestMaxOutputTokens value) + public static string ToValueString(this RealtimeSessionCreateRequestGAMaxOutputTokens value) { return value switch { - RealtimeSessionCreateRequestMaxOutputTokens.Inf => "inf", + RealtimeSessionCreateRequestGAMaxOutputTokens.Inf => "inf", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestMaxOutputTokens? ToEnum(string value) + public static RealtimeSessionCreateRequestGAMaxOutputTokens? ToEnum(string value) { return value switch { - "inf" => RealtimeSessionCreateRequestMaxOutputTokens.Inf, + "inf" => RealtimeSessionCreateRequestGAMaxOutputTokens.Inf, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAModel.g.cs new file mode 100644 index 00000000..3a1106f0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAModel.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeSessionCreateRequestGAModel + { + /// + /// + /// + GptRealtime, + /// + /// + /// + GptRealtime20250828, + /// + /// + /// + Gpt4oRealtimePreview, + /// + /// + /// + Gpt4oRealtimePreview20241001, + /// + /// + /// + Gpt4oRealtimePreview20241217, + /// + /// + /// + Gpt4oRealtimePreview20250603, + /// + /// + /// + Gpt4oMiniRealtimePreview, + /// + /// + /// + Gpt4oMiniRealtimePreview20241217, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeSessionCreateRequestGAModelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeSessionCreateRequestGAModel value) + { + return value switch + { + RealtimeSessionCreateRequestGAModel.GptRealtime => "gpt-realtime", + RealtimeSessionCreateRequestGAModel.GptRealtime20250828 => "gpt-realtime-2025-08-28", + RealtimeSessionCreateRequestGAModel.Gpt4oRealtimePreview => "gpt-4o-realtime-preview", + RealtimeSessionCreateRequestGAModel.Gpt4oRealtimePreview20241001 => "gpt-4o-realtime-preview-2024-10-01", + RealtimeSessionCreateRequestGAModel.Gpt4oRealtimePreview20241217 => "gpt-4o-realtime-preview-2024-12-17", + RealtimeSessionCreateRequestGAModel.Gpt4oRealtimePreview20250603 => "gpt-4o-realtime-preview-2025-06-03", + RealtimeSessionCreateRequestGAModel.Gpt4oMiniRealtimePreview => "gpt-4o-mini-realtime-preview", + RealtimeSessionCreateRequestGAModel.Gpt4oMiniRealtimePreview20241217 => "gpt-4o-mini-realtime-preview-2024-12-17", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeSessionCreateRequestGAModel? ToEnum(string value) + { + return value switch + { + "gpt-realtime" => RealtimeSessionCreateRequestGAModel.GptRealtime, + "gpt-realtime-2025-08-28" => RealtimeSessionCreateRequestGAModel.GptRealtime20250828, + "gpt-4o-realtime-preview" => RealtimeSessionCreateRequestGAModel.Gpt4oRealtimePreview, + "gpt-4o-realtime-preview-2024-10-01" => RealtimeSessionCreateRequestGAModel.Gpt4oRealtimePreview20241001, + "gpt-4o-realtime-preview-2024-12-17" => RealtimeSessionCreateRequestGAModel.Gpt4oRealtimePreview20241217, + "gpt-4o-realtime-preview-2025-06-03" => RealtimeSessionCreateRequestGAModel.Gpt4oRealtimePreview20250603, + "gpt-4o-mini-realtime-preview" => RealtimeSessionCreateRequestGAModel.Gpt4oMiniRealtimePreview, + "gpt-4o-mini-realtime-preview-2024-12-17" => RealtimeSessionCreateRequestGAModel.Gpt4oMiniRealtimePreview20241217, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAOutputModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAOutputModalitie.g.cs new file mode 100644 index 00000000..b037b660 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAOutputModalitie.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeSessionCreateRequestGAOutputModalitie + { + /// + /// + /// + Text, + /// + /// + /// + Audio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeSessionCreateRequestGAOutputModalitieExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeSessionCreateRequestGAOutputModalitie value) + { + return value switch + { + RealtimeSessionCreateRequestGAOutputModalitie.Text => "text", + RealtimeSessionCreateRequestGAOutputModalitie.Audio => "audio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeSessionCreateRequestGAOutputModalitie? ToEnum(string value) + { + return value switch + { + "text" => RealtimeSessionCreateRequestGAOutputModalitie.Text, + "audio" => RealtimeSessionCreateRequestGAOutputModalitie.Audio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalities.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAToolDiscriminator.Json.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalities.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAToolDiscriminator.Json.g.cs index 6f69433b..e41038e4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalities.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAToolDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestOutputModalities + public sealed partial class RealtimeSessionCreateRequestGAToolDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalities? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAToolDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalities), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalities; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAToolDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAToolDiscriminator; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestOutputModalities? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAToolDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestOutputModalities), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputModalities; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAToolDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAToolDiscriminator; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAToolDiscriminator.g.cs similarity index 78% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolDiscriminator.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAToolDiscriminator.g.cs index 2b23d9e6..24c304e4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAToolDiscriminator.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public sealed partial class RealtimeSessionCreateRequestToolDiscriminator + public sealed partial class RealtimeSessionCreateRequestGAToolDiscriminator { /// /// @@ -21,22 +21,22 @@ public sealed partial class RealtimeSessionCreateRequestToolDiscriminator 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. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateRequestToolDiscriminator( + public RealtimeSessionCreateRequestGAToolDiscriminator( string? type) { this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateRequestToolDiscriminator() + public RealtimeSessionCreateRequestGAToolDiscriminator() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum.g.cs new file mode 100644 index 00000000..9dfd257b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default tracing mode for the session.
+ /// Default Value: auto + ///
+ public enum RealtimeSessionCreateRequestGATracingEnum + { + /// + /// + /// + Auto, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeSessionCreateRequestGATracingEnumExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeSessionCreateRequestGATracingEnum value) + { + return value switch + { + RealtimeSessionCreateRequestGATracingEnum.Auto => "auto", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeSessionCreateRequestGATracingEnum? ToEnum(string value) + { + return value switch + { + "auto" => RealtimeSessionCreateRequestGATracingEnum.Auto, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTurnDetection.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum2.Json.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTurnDetection.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum2.Json.g.cs index 2dfb1637..a5a28752 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTurnDetection.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum2.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateResponseTurnDetection + public sealed partial class RealtimeSessionCreateRequestGATracingEnum2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateResponseTurnDetection? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateResponseTurnDetection), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestGATracingEnum2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum2.g.cs new file mode 100644 index 00000000..897baa76 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnum2.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Granular configuration for tracing. + /// + public sealed partial class RealtimeSessionCreateRequestGATracingEnum2 + { + /// + /// The group id to attach to this trace to enable filtering and
+ /// grouping in the Traces Dashboard. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("group_id")] + public string? GroupId { get; set; } + + /// + /// The arbitrary metadata to attach to this trace to enable
+ /// filtering in the Traces Dashboard. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public object? Metadata { get; set; } + + /// + /// The name of the workflow to attach to this trace. This is used to
+ /// name the trace in the Traces Dashboard. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("workflow_name")] + public string? WorkflowName { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The group id to attach to this trace to enable filtering and
+ /// grouping in the Traces Dashboard. + /// + /// + /// The arbitrary metadata to attach to this trace to enable
+ /// filtering in the Traces Dashboard. + /// + /// + /// The name of the workflow to attach to this trace. This is used to
+ /// name the trace in the Traces Dashboard. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeSessionCreateRequestGATracingEnum2( + string? groupId, + object? metadata, + string? workflowName) + { + this.GroupId = groupId; + this.Metadata = metadata; + this.WorkflowName = workflowName; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeSessionCreateRequestGATracingEnum2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnumMetadata.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnumMetadata.Json.g.cs new file mode 100644 index 00000000..b1b23c6d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnumMetadata.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeSessionCreateRequestGATracingEnumMetadata + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnumMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnumMetadata), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnumMetadata; + } + + /// + /// 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.RealtimeSessionCreateRequestGATracingEnumMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeSessionCreateRequestGATracingEnumMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnumMetadata; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnumMetadata.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnumMetadata.g.cs new file mode 100644 index 00000000..0eaf8ed3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGATracingEnumMetadata.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The arbitrary metadata to attach to this trace to enable
+ /// filtering in the Traces Dashboard. + ///
+ public sealed partial class RealtimeSessionCreateRequestGATracingEnumMetadata + { + + /// + /// 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.RealtimeSessionCreateRequestGAType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAType.g.cs new file mode 100644 index 00000000..3f4a9f47 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestGAType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of session to create. Always `realtime` for the Realtime API. + /// + public enum RealtimeSessionCreateRequestGAType + { + /// + /// + /// + Realtime, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeSessionCreateRequestGATypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeSessionCreateRequestGAType value) + { + return value switch + { + RealtimeSessionCreateRequestGAType.Realtime => "realtime", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeSessionCreateRequestGAType? ToEnum(string value) + { + return value switch + { + "realtime" => RealtimeSessionCreateRequestGAType.Realtime, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscription.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.Json.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscription.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.Json.g.cs index 808e0ed9..b502e1fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTranscription.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestAudioInputTranscription + public sealed partial class RealtimeSessionCreateRequestInputAudioTranscription { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscription? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscription), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscription; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestAudioInputTranscription? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestAudioInputTranscription), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInputTranscription; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestInputAudioTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.g.cs new file mode 100644 index 00000000..5e6d0f33 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.g.cs @@ -0,0 +1,49 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// 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 and should be treated as rough guidance
+ /// rather than the representation understood by the model. + ///
+ public sealed partial class RealtimeSessionCreateRequestInputAudioTranscription + { + /// + /// The model to use for transcription. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The model to use for transcription. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeSessionCreateRequestInputAudioTranscription( + string? model) + { + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeSessionCreateRequestInputAudioTranscription() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestMaxResponseOutputTokens.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestMaxResponseOutputTokens.g.cs new file mode 100644 index 00000000..0d32834e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestMaxResponseOutputTokens.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeSessionCreateRequestMaxResponseOutputTokens + { + /// + /// + /// + Inf, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeSessionCreateRequestMaxResponseOutputTokensExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeSessionCreateRequestMaxResponseOutputTokens value) + { + return value switch + { + RealtimeSessionCreateRequestMaxResponseOutputTokens.Inf => "inf", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeSessionCreateRequestMaxResponseOutputTokens? ToEnum(string value) + { + return value switch + { + "inf" => RealtimeSessionCreateRequestMaxResponseOutputTokens.Inf, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalitie.g.cs similarity index 62% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsModalitie.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalitie.g.cs index 4c874a75..ca096a78 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParamsModalitie.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalitie.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public enum RealtimeResponseCreateParamsModalitie + public enum RealtimeSessionCreateRequestModalitie { /// /// @@ -21,29 +21,29 @@ public enum RealtimeResponseCreateParamsModalitie /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeResponseCreateParamsModalitieExtensions + public static class RealtimeSessionCreateRequestModalitieExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeResponseCreateParamsModalitie value) + public static string ToValueString(this RealtimeSessionCreateRequestModalitie value) { return value switch { - RealtimeResponseCreateParamsModalitie.Text => "text", - RealtimeResponseCreateParamsModalitie.Audio => "audio", + RealtimeSessionCreateRequestModalitie.Text => "text", + RealtimeSessionCreateRequestModalitie.Audio => "audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeResponseCreateParamsModalitie? ToEnum(string value) + public static RealtimeSessionCreateRequestModalitie? ToEnum(string value) { return value switch { - "text" => RealtimeResponseCreateParamsModalitie.Text, - "audio" => RealtimeResponseCreateParamsModalitie.Audio, + "text" => RealtimeSessionCreateRequestModalitie.Text, + "audio" => RealtimeSessionCreateRequestModalitie.Audio, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalities.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInput.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalities.Json.g.cs index f23cf86e..2a5c43ff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInput.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalities.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestAudioInput + public sealed partial class RealtimeSessionCreateRequestModalities { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInput? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalities? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInput), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInput; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalities), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalities; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestAudioInput? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalities? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestAudioInput), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudioInput; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalities), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalities; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestOutputModalities.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalities.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalities.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalities.g.cs index 77e0ca82..28af8f80 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestOutputModalities.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalities.g.cs @@ -7,7 +7,7 @@ namespace tryAGI.OpenAI /// The set of modalities the model can respond with. To disable audio,
/// set this to ["text"]. ///
- public sealed partial class RealtimeSessionCreateRequestOutputModalities + public sealed partial class RealtimeSessionCreateRequestModalities { /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModel.g.cs deleted file mode 100644 index b72f2243..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModel.g.cs +++ /dev/null @@ -1,99 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// - /// - public enum RealtimeSessionCreateRequestModel - { - /// - /// - /// - GptRealtime, - /// - /// - /// - GptRealtime20250828, - /// - /// - /// - Gpt4oRealtime, - /// - /// - /// - Gpt4oMiniRealtime, - /// - /// - /// - Gpt4oRealtimePreview, - /// - /// - /// - Gpt4oRealtimePreview20241001, - /// - /// - /// - Gpt4oRealtimePreview20241217, - /// - /// - /// - Gpt4oRealtimePreview20250603, - /// - /// - /// - Gpt4oMiniRealtimePreview, - /// - /// - /// - Gpt4oMiniRealtimePreview20241217, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RealtimeSessionCreateRequestModelExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RealtimeSessionCreateRequestModel value) - { - return value switch - { - RealtimeSessionCreateRequestModel.GptRealtime => "gpt-realtime", - RealtimeSessionCreateRequestModel.GptRealtime20250828 => "gpt-realtime-2025-08-28", - RealtimeSessionCreateRequestModel.Gpt4oRealtime => "gpt-4o-realtime", - RealtimeSessionCreateRequestModel.Gpt4oMiniRealtime => "gpt-4o-mini-realtime", - RealtimeSessionCreateRequestModel.Gpt4oRealtimePreview => "gpt-4o-realtime-preview", - RealtimeSessionCreateRequestModel.Gpt4oRealtimePreview20241001 => "gpt-4o-realtime-preview-2024-10-01", - RealtimeSessionCreateRequestModel.Gpt4oRealtimePreview20241217 => "gpt-4o-realtime-preview-2024-12-17", - RealtimeSessionCreateRequestModel.Gpt4oRealtimePreview20250603 => "gpt-4o-realtime-preview-2025-06-03", - RealtimeSessionCreateRequestModel.Gpt4oMiniRealtimePreview => "gpt-4o-mini-realtime-preview", - RealtimeSessionCreateRequestModel.Gpt4oMiniRealtimePreview20241217 => "gpt-4o-mini-realtime-preview-2024-12-17", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RealtimeSessionCreateRequestModel? ToEnum(string value) - { - return value switch - { - "gpt-realtime" => RealtimeSessionCreateRequestModel.GptRealtime, - "gpt-realtime-2025-08-28" => RealtimeSessionCreateRequestModel.GptRealtime20250828, - "gpt-4o-realtime" => RealtimeSessionCreateRequestModel.Gpt4oRealtime, - "gpt-4o-mini-realtime" => RealtimeSessionCreateRequestModel.Gpt4oMiniRealtime, - "gpt-4o-realtime-preview" => RealtimeSessionCreateRequestModel.Gpt4oRealtimePreview, - "gpt-4o-realtime-preview-2024-10-01" => RealtimeSessionCreateRequestModel.Gpt4oRealtimePreview20241001, - "gpt-4o-realtime-preview-2024-12-17" => RealtimeSessionCreateRequestModel.Gpt4oRealtimePreview20241217, - "gpt-4o-realtime-preview-2025-06-03" => RealtimeSessionCreateRequestModel.Gpt4oRealtimePreview20250603, - "gpt-4o-mini-realtime-preview" => RealtimeSessionCreateRequestModel.Gpt4oMiniRealtimePreview, - "gpt-4o-mini-realtime-preview-2024-12-17" => RealtimeSessionCreateRequestModel.Gpt4oMiniRealtimePreview20241217, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTool.Json.g.cs similarity index 91% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTool.Json.g.cs index 8affae2c..a72bd07a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTool.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestToolVariant1 + public sealed partial class RealtimeSessionCreateRequestTool { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestToolVariant1? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestToolVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestToolVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTool.g.cs similarity index 90% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTool.g.cs index fa3b36de..ec01057a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTool.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public sealed partial class RealtimeSessionCreateRequestToolVariant1 + public sealed partial class RealtimeSessionCreateRequestTool { /// /// The description of the function, including guidance on when and how
@@ -32,8 +32,8 @@ public sealed partial class RealtimeSessionCreateRequestToolVariant1 /// The type of the tool, i.e. `function`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolVariant1TypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateRequestToolTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +42,7 @@ public sealed partial class RealtimeSessionCreateRequestToolVariant1 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. /// /// /// The description of the function, including guidance on when and how
@@ -61,11 +61,11 @@ public sealed partial class RealtimeSessionCreateRequestToolVariant1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateRequestToolVariant1( + public RealtimeSessionCreateRequestTool( string? description, string? name, object? parameters, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1Type? type) + global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? type) { this.Description = description; this.Name = name; @@ -74,9 +74,9 @@ public RealtimeSessionCreateRequestToolVariant1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateRequestToolVariant1() + public RealtimeSessionCreateRequestTool() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolParameters.Json.g.cs similarity index 90% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolDiscriminator.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolParameters.Json.g.cs index 5552ea78..181731e8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolDiscriminator.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolParameters.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeSessionCreateRequestToolDiscriminator + public sealed partial class RealtimeSessionCreateRequestToolParameters { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolDiscriminator? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolParameters? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolDiscriminator), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolDiscriminator; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolParameters), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolParameters; } /// @@ -51,11 +51,11 @@ 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.RealtimeSessionCreateRequestToolDiscriminator? FromJson( + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolParameters? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeSessionCreateRequestToolDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolDiscriminator; + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolParameters; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateRequestToolVariant1Parameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolParameters.g.cs similarity index 96% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Parameters.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolParameters.g.cs index f5418df4..08e2958f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolVariant1Parameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolParameters.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Parameters of the function in JSON Schema. /// - public sealed partial class RealtimeSessionCreateRequestToolVariant1Parameters + public sealed partial class RealtimeSessionCreateRequestToolParameters { /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolType.g.cs similarity index 68% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolType.g.cs index 05de8afa..539ebad5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseToolType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestToolType.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// The type of the tool, i.e. `function`. /// - public enum RealtimeSessionCreateResponseToolType + public enum RealtimeSessionCreateRequestToolType { /// /// @@ -17,27 +17,27 @@ public enum RealtimeSessionCreateResponseToolType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateResponseToolTypeExtensions + public static class RealtimeSessionCreateRequestToolTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateResponseToolType value) + public static string ToValueString(this RealtimeSessionCreateRequestToolType value) { return value switch { - RealtimeSessionCreateResponseToolType.Function => "function", + RealtimeSessionCreateRequestToolType.Function => "function", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateResponseToolType? ToEnum(string value) + public static RealtimeSessionCreateRequestToolType? ToEnum(string value) { return value switch { - "function" => RealtimeSessionCreateResponseToolType.Function, + "function" => RealtimeSessionCreateRequestToolType.Function, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTurnDetection.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTurnDetection.Json.g.cs new file mode 100644 index 00000000..df227ea8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTurnDetection.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeSessionCreateRequestTurnDetection + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection; + } + + /// + /// 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.RealtimeSessionCreateRequestTurnDetection? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeSessionCreateRequestTurnDetection), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTurnDetection.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTurnDetection.g.cs similarity index 92% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTurnDetection.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTurnDetection.g.cs index b251d25c..ee4569c1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTurnDetection.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestTurnDetection.g.cs @@ -8,7 +8,7 @@ namespace tryAGI.OpenAI /// VAD means that the model will detect the start and end of speech based on
/// audio volume and respond at the end of user speech. ///
- public sealed partial class RealtimeSessionCreateResponseTurnDetection + public sealed partial class RealtimeSessionCreateRequestTurnDetection { /// /// Amount of audio to include before the VAD detected speech (in
@@ -46,7 +46,7 @@ public sealed partial class RealtimeSessionCreateResponseTurnDetection 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. /// /// /// Amount of audio to include before the VAD detected speech (in
@@ -68,7 +68,7 @@ public sealed partial class RealtimeSessionCreateResponseTurnDetection #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeSessionCreateResponseTurnDetection( + public RealtimeSessionCreateRequestTurnDetection( int? prefixPaddingMs, int? silenceDurationMs, double? threshold, @@ -81,9 +81,9 @@ public RealtimeSessionCreateResponseTurnDetection( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeSessionCreateResponseTurnDetection() + public RealtimeSessionCreateRequestTurnDetection() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponse.g.cs index e29db243..f0c372b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponse.g.cs @@ -6,47 +6,33 @@ namespace tryAGI.OpenAI { /// - /// A Realtime session configuration object. + /// A new Realtime session configuration, with an ephemeral key. Default TTL
+ /// for keys is one minute. ///
public sealed partial class RealtimeSessionCreateResponse { /// - /// Configuration for input and output audio for the session. + /// Configuration for input and output audio. /// [global::System.Text.Json.Serialization.JsonPropertyName("audio")] public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Audio { get; set; } /// - /// Expiration timestamp for the session, in seconds since epoch. + /// Ephemeral key returned by the API. /// - [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")] - public int? ExpiresAt { get; set; } - - /// - /// Unique identifier for the session that looks like `sess_1234567890abcdef`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("client_secret")] + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret? ClientSecret { get; set; } /// /// Additional fields to include in server outputs.
- /// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. ///
[global::System.Text.Json.Serialization.JsonPropertyName("include")] public global::System.Collections.Generic.IList? Include { get; set; } /// - /// The default system instructions (i.e. system message) prepended to model
- /// calls. This field allows the client to guide the model on desired
- /// responses. The model can be instructed on response content and format,
- /// (e.g. "be extremely succinct", "act friendly", "here are examples of good
- /// responses") and on audio behavior (e.g. "talk quickly", "inject emotion
- /// into your voice", "laugh frequently"). The instructions are not guaranteed
- /// to be followed by the model, but they provide guidance to the model on the
- /// desired behavior.
- /// Note that the server sets default instructions which will be used if this
- /// field is not set and are visible in the `session.created` event at the
- /// start of the session. + /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
+ /// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. ///
[global::System.Text.Json.Serialization.JsonPropertyName("instructions")] public string? Instructions { get; set; } @@ -65,36 +51,42 @@ public sealed partial class RealtimeSessionCreateResponse /// The Realtime model used for this session. ///
[global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Model { get; set; } /// - /// The object type. Always `realtime.session`. + /// The set of modalities the model can respond with. It defaults to `["audio"]`, indicating
+ /// that the model will respond with audio plus a transcript. `["text"]` can be used to make
+ /// the model respond with text only. It is not possible to request both `text` and `audio` at the same time.
+ /// Default Value: [audio] ///
- [global::System.Text.Json.Serialization.JsonPropertyName("object")] - public string? Object { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("output_modalities")] + public global::System.Collections.Generic.IList? OutputModalities { get; set; } /// - /// The set of modalities the model can respond with. To disable audio,
- /// set this to ["text"]. + /// Reference to a prompt template and its variables.
+ /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). ///
- [global::System.Text.Json.Serialization.JsonPropertyName("output_modalities")] - public global::System.Collections.Generic.IList? OutputModalities { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + public global::tryAGI.OpenAI.Prompt2? Prompt { get; set; } /// - /// How the model chooses tools. Options are `auto`, `none`, `required`, or
- /// specify a function. + /// How the model chooses tools. Provide one of the string modes or force a specific
+ /// function/MCP tool.
+ /// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - public string? ToolChoice { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? ToolChoice { get; set; } /// - /// Tools (functions) available to the model. + /// Tools available to the model. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + public global::System.Collections.Generic.IList>? Tools { get; set; } /// - /// Configuration options for tracing. Set to null to disable tracing. Once
+ /// Realtime API can write session traces to the [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once
/// tracing is enabled for a session, the configuration cannot be modified.
/// `auto` will create a trace for the session with default values for the
/// workflow name, group id, and metadata. @@ -104,12 +96,19 @@ public sealed partial class RealtimeSessionCreateResponse public global::tryAGI.OpenAI.AnyOf? Tracing { get; set; } /// - /// Configuration for turn detection. Can be set to `null` to turn off. Server
- /// VAD means that the model will detect the start and end of speech based on
- /// audio volume and respond at the end of user speech. + /// Controls how the realtime conversation is truncated prior to model inference.
+ /// The default is `auto`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("turn_detection")] - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? TurnDetection { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("truncation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTruncation? Truncation { get; set; } + + /// + /// The type of session to create. Always `realtime` for the Realtime API. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -121,30 +120,18 @@ public sealed partial class RealtimeSessionCreateResponse /// Initializes a new instance of the class. /// /// - /// Configuration for input and output audio for the session. - /// - /// - /// Expiration timestamp for the session, in seconds since epoch. + /// Configuration for input and output audio. /// - /// - /// Unique identifier for the session that looks like `sess_1234567890abcdef`. + /// + /// Ephemeral key returned by the API. /// /// /// Additional fields to include in server outputs.
- /// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. /// /// - /// The default system instructions (i.e. system message) prepended to model
- /// calls. This field allows the client to guide the model on desired
- /// responses. The model can be instructed on response content and format,
- /// (e.g. "be extremely succinct", "act friendly", "here are examples of good
- /// responses") and on audio behavior (e.g. "talk quickly", "inject emotion
- /// into your voice", "laugh frequently"). The instructions are not guaranteed
- /// to be followed by the model, but they provide guidance to the model on the
- /// desired behavior.
- /// Note that the server sets default instructions which will be used if this
- /// field is not set and are visible in the `session.created` event at the
- /// start of the session. + /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
+ /// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. /// /// /// Maximum number of output tokens for a single assistant response,
@@ -155,62 +142,68 @@ public sealed partial class RealtimeSessionCreateResponse /// /// The Realtime model used for this session. /// - /// - /// The object type. Always `realtime.session`. - /// /// - /// The set of modalities the model can respond with. To disable audio,
- /// set this to ["text"]. + /// The set of modalities the model can respond with. It defaults to `["audio"]`, indicating
+ /// that the model will respond with audio plus a transcript. `["text"]` can be used to make
+ /// the model respond with text only. It is not possible to request both `text` and `audio` at the same time.
+ /// Default Value: [audio] + /// + /// + /// Reference to a prompt template and its variables.
+ /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). /// /// - /// How the model chooses tools. Options are `auto`, `none`, `required`, or
- /// specify a function. + /// How the model chooses tools. Provide one of the string modes or force a specific
+ /// function/MCP tool.
+ /// Default Value: auto /// /// - /// Tools (functions) available to the model. + /// Tools available to the model. /// /// - /// Configuration options for tracing. Set to null to disable tracing. Once
+ /// Realtime API can write session traces to the [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once
/// tracing is enabled for a session, the configuration cannot be modified.
/// `auto` will create a trace for the session with default values for the
/// workflow name, group id, and metadata. /// - /// - /// Configuration for turn detection. Can be set to `null` to turn off. Server
- /// VAD means that the model will detect the start and end of speech based on
- /// audio volume and respond at the end of user speech. + /// + /// Controls how the realtime conversation is truncated prior to model inference.
+ /// The default is `auto`. + /// + /// + /// The type of session to create. Always `realtime` for the Realtime API. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeSessionCreateResponse( global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? audio, - int? expiresAt, - string? id, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret? clientSecret, global::System.Collections.Generic.IList? include, string? instructions, global::tryAGI.OpenAI.AnyOf? maxOutputTokens, - string? model, - string? @object, + global::tryAGI.OpenAI.AnyOf? model, global::System.Collections.Generic.IList? outputModalities, - string? toolChoice, - global::System.Collections.Generic.IList? tools, + global::tryAGI.OpenAI.Prompt2? prompt, + global::tryAGI.OpenAI.AnyOf? toolChoice, + global::System.Collections.Generic.IList>? tools, global::tryAGI.OpenAI.AnyOf? tracing, - global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? turnDetection) + global::tryAGI.OpenAI.RealtimeTruncation? truncation, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseType? type) { this.Audio = audio; - this.ExpiresAt = expiresAt; - this.Id = id; + this.ClientSecret = clientSecret; this.Include = include; this.Instructions = instructions; this.MaxOutputTokens = maxOutputTokens; this.Model = model; - this.Object = @object; this.OutputModalities = outputModalities; + this.Prompt = prompt; this.ToolChoice = toolChoice; this.Tools = tools; this.Tracing = tracing; - this.TurnDetection = turnDetection; + this.Truncation = truncation; + this.Type = type; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudio.g.cs index 96f5b166..ee3158da 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudio.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudio.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Configuration for input and output audio for the session. + /// Configuration for input and output audio. /// public sealed partial class RealtimeSessionCreateResponseAudio { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInput.g.cs index 49436092..dbdb098c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInput.g.cs @@ -9,25 +9,30 @@ namespace tryAGI.OpenAI public sealed partial class RealtimeSessionCreateResponseAudioInput { /// - /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("format")] - public string? Format { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter))] + public global::tryAGI.OpenAI.RealtimeAudioFormats? Format { get; set; } /// - /// Configuration for input audio noise reduction. + /// Configuration for input audio noise reduction. This can be set to `null` to turn off.
+ /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
+ /// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. ///
[global::System.Text.Json.Serialization.JsonPropertyName("noise_reduction")] public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? NoiseReduction { get; set; } /// - /// Configuration for input audio transcription. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTranscription? Transcription { get; set; } + public global::tryAGI.OpenAI.AudioTranscription? Transcription { get; set; } /// - /// Configuration for turn detection. + /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
+ /// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
+ /// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency. ///
[global::System.Text.Json.Serialization.JsonPropertyName("turn_detection")] public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? TurnDetection { get; set; } @@ -41,25 +46,25 @@ public sealed partial class RealtimeSessionCreateResponseAudioInput /// /// Initializes a new instance of the class. /// - /// - /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. - /// + /// /// - /// Configuration for input audio noise reduction. - /// - /// - /// Configuration for input audio transcription. + /// Configuration for input audio noise reduction. This can be set to `null` to turn off.
+ /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
+ /// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. /// + /// /// - /// Configuration for turn detection. + /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
+ /// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
+ /// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeSessionCreateResponseAudioInput( - string? format, + global::tryAGI.OpenAI.RealtimeAudioFormats? format, global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? noiseReduction, - global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTranscription? transcription, + global::tryAGI.OpenAI.AudioTranscription? transcription, global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? turnDetection) { this.Format = format; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputNoiseReduction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputNoiseReduction.g.cs index 17b3fb5a..0412f1e9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputNoiseReduction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputNoiseReduction.g.cs @@ -4,16 +4,18 @@ namespace tryAGI.OpenAI { /// - /// Configuration for input audio noise reduction. + /// Configuration for input audio noise reduction. This can be set to `null` to turn off.
+ /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
+ /// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. ///
public sealed partial class RealtimeSessionCreateResponseAudioInputNoiseReduction { /// - /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputNoiseReductionTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter))] + public global::tryAGI.OpenAI.NoiseReductionType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -24,12 +26,14 @@ public sealed partial class RealtimeSessionCreateResponseAudioInputNoiseReductio /// /// Initializes a new instance of the class. /// - /// + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeSessionCreateResponseAudioInputNoiseReduction( - global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReductionType? type) + global::tryAGI.OpenAI.NoiseReductionType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTranscription.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTranscription.Json.g.cs deleted file mode 100644 index 88b46151..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTranscription.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI -{ - public sealed partial class RealtimeSessionCreateResponseAudioInputTranscription - { - /// - /// 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 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) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTranscription? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTranscription), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTranscription; - } - - /// - /// 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.RealtimeSessionCreateResponseAudioInputTranscription? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - 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.RealtimeSessionCreateResponseAudioInputTranscription), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTranscription; - } - - /// - /// 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) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTranscription.g.cs deleted file mode 100644 index 6303255c..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTranscription.g.cs +++ /dev/null @@ -1,67 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// Configuration for input audio transcription. - /// - public sealed partial class RealtimeSessionCreateResponseAudioInputTranscription - { - /// - /// The language of the input audio. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language")] - public string? Language { get; set; } - - /// - /// The model to use for transcription. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// Optional text to guide the model's style or continue a previous audio segment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - public string? Prompt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The language of the input audio. - /// - /// - /// The model to use for transcription. - /// - /// - /// Optional text to guide the model's style or continue a previous audio segment. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RealtimeSessionCreateResponseAudioInputTranscription( - string? language, - string? model, - string? prompt) - { - this.Language = language; - this.Model = model; - this.Prompt = prompt; - } - - /// - /// Initializes a new instance of the class. - /// - public RealtimeSessionCreateResponseAudioInputTranscription() - { - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetection.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetection.g.cs index 1b0aa146..af4ed498 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetection.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetection.g.cs @@ -4,33 +4,72 @@ namespace tryAGI.OpenAI { /// - /// Configuration for turn detection. + /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
+ /// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
+ /// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency. ///
public sealed partial class RealtimeSessionCreateResponseAudioInputTurnDetection { /// - /// + /// Whether or not to automatically generate a response when a VAD stop event occurs.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("create_response")] + public bool? CreateResponse { get; set; } + + /// + /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.
+ /// Default Value: auto + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("eagerness")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessJsonConverter))] + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness? Eagerness { get; set; } + + /// + /// Optional idle timeout after which turn detection will auto-timeout when
+ /// no additional audio is received. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("idle_timeout_ms")] + public int? IdleTimeoutMs { get; set; } + + /// + /// Whether or not to automatically interrupt any ongoing response with output to the default
+ /// conversation (i.e. `conversation` of `auto`) when a VAD start event occurs.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("interrupt_response")] + public bool? InterruptResponse { get; set; } + + /// + /// Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in
+ /// milliseconds). Defaults to 300ms. ///
[global::System.Text.Json.Serialization.JsonPropertyName("prefix_padding_ms")] public int? PrefixPaddingMs { get; set; } /// - /// + /// Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults
+ /// to 500ms. With shorter values the model will respond more quickly,
+ /// but may jump in on short pauses from the user. ///
[global::System.Text.Json.Serialization.JsonPropertyName("silence_duration_ms")] public int? SilenceDurationMs { get; set; } /// - /// + /// Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A
+ /// higher threshold will require louder audio to activate the model, and
+ /// thus might perform better in noisy environments. ///
[global::System.Text.Json.Serialization.JsonPropertyName("threshold")] public double? Threshold { get; set; } /// - /// Type of turn detection, only `server_vad` is currently supported. + /// Type of turn detection.
+ /// Default Value: server_vad ///
[global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeSessionCreateResponseAudioInputTurnDetectionTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,21 +80,58 @@ public sealed partial class RealtimeSessionCreateResponseAudioInputTurnDetection /// /// Initializes a new instance of the class. /// - /// - /// - /// + /// + /// Whether or not to automatically generate a response when a VAD stop event occurs.
+ /// Default Value: true + /// + /// + /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.
+ /// Default Value: auto + /// + /// + /// Optional idle timeout after which turn detection will auto-timeout when
+ /// no additional audio is received. + /// + /// + /// Whether or not to automatically interrupt any ongoing response with output to the default
+ /// conversation (i.e. `conversation` of `auto`) when a VAD start event occurs.
+ /// Default Value: true + /// + /// + /// Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in
+ /// milliseconds). Defaults to 300ms. + /// + /// + /// Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults
+ /// to 500ms. With shorter values the model will respond more quickly,
+ /// but may jump in on short pauses from the user. + /// + /// + /// Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A
+ /// higher threshold will require louder audio to activate the model, and
+ /// thus might perform better in noisy environments. + /// /// - /// Type of turn detection, only `server_vad` is currently supported. + /// Type of turn detection.
+ /// Default Value: server_vad /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeSessionCreateResponseAudioInputTurnDetection( + bool? createResponse, + global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness? eagerness, + int? idleTimeoutMs, + bool? interruptResponse, int? prefixPaddingMs, int? silenceDurationMs, double? threshold, - string? type) + global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetectionType? type) { + this.CreateResponse = createResponse; + this.Eagerness = eagerness; + this.IdleTimeoutMs = idleTimeoutMs; + this.InterruptResponse = interruptResponse; this.PrefixPaddingMs = prefixPaddingMs; this.SilenceDurationMs = silenceDurationMs; this.Threshold = threshold; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.g.cs similarity index 50% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.g.cs index d67a98a2..ce1cc9c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.g.cs @@ -4,10 +4,10 @@ namespace tryAGI.OpenAI { /// - /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.
+ /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.
/// Default Value: auto ///
- public enum RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness + public enum RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness { /// /// @@ -30,33 +30,33 @@ public enum RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestAudioInputTurnDetectionEagernessExtensions + public static class RealtimeSessionCreateResponseAudioInputTurnDetectionEagernessExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness value) + public static string ToValueString(this RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness value) { return value switch { - RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.Low => "low", - RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.Medium => "medium", - RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.High => "high", - RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.Auto => "auto", + RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.Low => "low", + RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.Medium => "medium", + RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.High => "high", + RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.Auto => "auto", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness? ToEnum(string value) + public static RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness? ToEnum(string value) { return value switch { - "low" => RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.Low, - "medium" => RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.Medium, - "high" => RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.High, - "auto" => RealtimeSessionCreateRequestAudioInputTurnDetectionEagerness.Auto, + "low" => RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.Low, + "medium" => RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.Medium, + "high" => RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.High, + "auto" => RealtimeSessionCreateResponseAudioInputTurnDetectionEagerness.Auto, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetectionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetectionType.g.cs similarity index 57% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetectionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetectionType.g.cs index 257f7331..aeb70c6e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestAudioInputTurnDetectionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioInputTurnDetectionType.g.cs @@ -7,7 +7,7 @@ namespace tryAGI.OpenAI /// Type of turn detection.
/// Default Value: server_vad ///
- public enum RealtimeSessionCreateRequestAudioInputTurnDetectionType + public enum RealtimeSessionCreateResponseAudioInputTurnDetectionType { /// /// @@ -22,29 +22,29 @@ public enum RealtimeSessionCreateRequestAudioInputTurnDetectionType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestAudioInputTurnDetectionTypeExtensions + public static class RealtimeSessionCreateResponseAudioInputTurnDetectionTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestAudioInputTurnDetectionType value) + public static string ToValueString(this RealtimeSessionCreateResponseAudioInputTurnDetectionType value) { return value switch { - RealtimeSessionCreateRequestAudioInputTurnDetectionType.ServerVad => "server_vad", - RealtimeSessionCreateRequestAudioInputTurnDetectionType.SemanticVad => "semantic_vad", + RealtimeSessionCreateResponseAudioInputTurnDetectionType.ServerVad => "server_vad", + RealtimeSessionCreateResponseAudioInputTurnDetectionType.SemanticVad => "semantic_vad", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestAudioInputTurnDetectionType? ToEnum(string value) + public static RealtimeSessionCreateResponseAudioInputTurnDetectionType? ToEnum(string value) { return value switch { - "server_vad" => RealtimeSessionCreateRequestAudioInputTurnDetectionType.ServerVad, - "semantic_vad" => RealtimeSessionCreateRequestAudioInputTurnDetectionType.SemanticVad, + "server_vad" => RealtimeSessionCreateResponseAudioInputTurnDetectionType.ServerVad, + "semantic_vad" => RealtimeSessionCreateResponseAudioInputTurnDetectionType.SemanticVad, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioOutput.g.cs index fcb9f6fc..3888db28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseAudioOutput.g.cs @@ -9,13 +9,18 @@ namespace tryAGI.OpenAI public sealed partial class RealtimeSessionCreateResponseAudioOutput { /// - /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("format")] - public string? Format { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter))] + public global::tryAGI.OpenAI.RealtimeAudioFormats? Format { get; set; } /// - /// + /// The speed of the model's spoken response as a multiple of the original speed.
+ /// 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.
+ /// This parameter is a post-processing adjustment to the audio after it is generated, it's
+ /// also possible to prompt the model to speak faster or slower.
+ /// Default Value: 1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("speed")] public double? Speed { get; set; } @@ -37,10 +42,14 @@ public sealed partial class RealtimeSessionCreateResponseAudioOutput /// /// Initializes a new instance of the class. /// - /// - /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// + /// + /// The speed of the model's spoken response as a multiple of the original speed.
+ /// 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.
+ /// This parameter is a post-processing adjustment to the audio after it is generated, it's
+ /// also possible to prompt the model to speak faster or slower.
+ /// Default Value: 1 /// - /// /// /// Example: ash /// @@ -48,7 +57,7 @@ public sealed partial class RealtimeSessionCreateResponseAudioOutput [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeSessionCreateResponseAudioOutput( - string? format, + global::tryAGI.OpenAI.RealtimeAudioFormats? format, double? speed, global::tryAGI.OpenAI.VoiceIdsShared? voice) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseClientSecret.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseClientSecret.Json.g.cs new file mode 100644 index 00000000..37ada745 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseClientSecret.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeSessionCreateResponseClientSecret + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret; + } + + /// + /// 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.RealtimeSessionCreateResponseClientSecret? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeSessionCreateResponseClientSecret), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseClientSecret.g.cs new file mode 100644 index 00000000..9c29f228 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseClientSecret.g.cs @@ -0,0 +1,60 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Ephemeral key returned by the API. + /// + public sealed partial class RealtimeSessionCreateResponseClientSecret + { + /// + /// Timestamp for when the token expires. Currently, all tokens expire
+ /// after one minute. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ExpiresAt { get; set; } + + /// + /// Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Value { 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. + /// + /// + /// Timestamp for when the token expires. Currently, all tokens expire
+ /// after one minute. + /// + /// + /// Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeSessionCreateResponseClientSecret( + int expiresAt, + string value) + { + this.ExpiresAt = expiresAt; + this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeSessionCreateResponseClientSecret() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseModel.g.cs new file mode 100644 index 00000000..f70ee88a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseModel.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeSessionCreateResponseModel + { + /// + /// + /// + GptRealtime, + /// + /// + /// + GptRealtime20250828, + /// + /// + /// + Gpt4oRealtimePreview, + /// + /// + /// + Gpt4oRealtimePreview20241001, + /// + /// + /// + Gpt4oRealtimePreview20241217, + /// + /// + /// + Gpt4oRealtimePreview20250603, + /// + /// + /// + Gpt4oMiniRealtimePreview, + /// + /// + /// + Gpt4oMiniRealtimePreview20241217, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeSessionCreateResponseModelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeSessionCreateResponseModel value) + { + return value switch + { + RealtimeSessionCreateResponseModel.GptRealtime => "gpt-realtime", + RealtimeSessionCreateResponseModel.GptRealtime20250828 => "gpt-realtime-2025-08-28", + RealtimeSessionCreateResponseModel.Gpt4oRealtimePreview => "gpt-4o-realtime-preview", + RealtimeSessionCreateResponseModel.Gpt4oRealtimePreview20241001 => "gpt-4o-realtime-preview-2024-10-01", + RealtimeSessionCreateResponseModel.Gpt4oRealtimePreview20241217 => "gpt-4o-realtime-preview-2024-12-17", + RealtimeSessionCreateResponseModel.Gpt4oRealtimePreview20250603 => "gpt-4o-realtime-preview-2025-06-03", + RealtimeSessionCreateResponseModel.Gpt4oMiniRealtimePreview => "gpt-4o-mini-realtime-preview", + RealtimeSessionCreateResponseModel.Gpt4oMiniRealtimePreview20241217 => "gpt-4o-mini-realtime-preview-2024-12-17", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeSessionCreateResponseModel? ToEnum(string value) + { + return value switch + { + "gpt-realtime" => RealtimeSessionCreateResponseModel.GptRealtime, + "gpt-realtime-2025-08-28" => RealtimeSessionCreateResponseModel.GptRealtime20250828, + "gpt-4o-realtime-preview" => RealtimeSessionCreateResponseModel.Gpt4oRealtimePreview, + "gpt-4o-realtime-preview-2024-10-01" => RealtimeSessionCreateResponseModel.Gpt4oRealtimePreview20241001, + "gpt-4o-realtime-preview-2024-12-17" => RealtimeSessionCreateResponseModel.Gpt4oRealtimePreview20241217, + "gpt-4o-realtime-preview-2025-06-03" => RealtimeSessionCreateResponseModel.Gpt4oRealtimePreview20250603, + "gpt-4o-mini-realtime-preview" => RealtimeSessionCreateResponseModel.Gpt4oMiniRealtimePreview, + "gpt-4o-mini-realtime-preview-2024-12-17" => RealtimeSessionCreateResponseModel.Gpt4oMiniRealtimePreview20241217, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseOutputModalities.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseOutputModalities.Json.g.cs deleted file mode 100644 index f1c1e37d..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseOutputModalities.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI -{ - public sealed partial class RealtimeSessionCreateResponseOutputModalities - { - /// - /// 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 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) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalities? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalities), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalities; - } - - /// - /// 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.RealtimeSessionCreateResponseOutputModalities? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - 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.RealtimeSessionCreateResponseOutputModalities), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalities; - } - - /// - /// 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) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTracingEnum2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTracingEnum2.g.cs index 56f71230..213d44ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTracingEnum2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTracingEnum2.g.cs @@ -10,21 +10,21 @@ public sealed partial class RealtimeSessionCreateResponseTracingEnum2 { /// /// The group id to attach to this trace to enable filtering and
- /// grouping in the traces dashboard. + /// grouping in the Traces Dashboard. ///
[global::System.Text.Json.Serialization.JsonPropertyName("group_id")] public string? GroupId { get; set; } /// /// The arbitrary metadata to attach to this trace to enable
- /// filtering in the traces dashboard. + /// filtering in the Traces Dashboard. ///
[global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { get; set; } /// /// The name of the workflow to attach to this trace. This is used to
- /// name the trace in the traces dashboard. + /// name the trace in the Traces Dashboard. ///
[global::System.Text.Json.Serialization.JsonPropertyName("workflow_name")] public string? WorkflowName { get; set; } @@ -40,15 +40,15 @@ public sealed partial class RealtimeSessionCreateResponseTracingEnum2 ///
/// /// The group id to attach to this trace to enable filtering and
- /// grouping in the traces dashboard. + /// grouping in the Traces Dashboard. /// /// /// The arbitrary metadata to attach to this trace to enable
- /// filtering in the traces dashboard. + /// filtering in the Traces Dashboard. /// /// /// The name of the workflow to attach to this trace. This is used to
- /// name the trace in the traces dashboard. + /// name the trace in the Traces Dashboard. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTracingEnumMetadata.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTracingEnumMetadata.g.cs index b45d80a8..d405de18 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTracingEnumMetadata.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseTracingEnumMetadata.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// The arbitrary metadata to attach to this trace to enable
- /// filtering in the traces dashboard. + /// filtering in the Traces Dashboard. ///
public sealed partial class RealtimeSessionCreateResponseTracingEnumMetadata { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseType.g.cs similarity index 70% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseType.g.cs index a41af601..099f2360 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseType.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// The type of session to create. Always `realtime` for the Realtime API. /// - public enum RealtimeSessionCreateRequestType + public enum RealtimeSessionCreateResponseType { /// /// @@ -17,27 +17,27 @@ public enum RealtimeSessionCreateRequestType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeSessionCreateRequestTypeExtensions + public static class RealtimeSessionCreateResponseTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeSessionCreateRequestType value) + public static string ToValueString(this RealtimeSessionCreateResponseType value) { return value switch { - RealtimeSessionCreateRequestType.Realtime => "realtime", + RealtimeSessionCreateResponseType.Realtime => "realtime", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeSessionCreateRequestType? ToEnum(string value) + public static RealtimeSessionCreateResponseType? ToEnum(string value) { return value switch { - "realtime" => RealtimeSessionCreateRequestType.Realtime, + "realtime" => RealtimeSessionCreateResponseType.Realtime, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequest.g.cs index 746c85b4..f9e02cb5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequest.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -12,7 +10,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequest { /// /// The set of items to include in the transcription. Current available items are:
- /// - `item.input_audio_transcription.logprobs` + /// `item.input_audio_transcription.logprobs` ///
[global::System.Text.Json.Serialization.JsonPropertyName("include")] public global::System.Collections.Generic.IList? Include { get; set; } @@ -36,20 +34,10 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequest public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? InputAudioNoiseReduction { get; set; } /// - /// Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("input_audio_transcription")] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? InputAudioTranscription { get; set; } - - /// - /// ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).
- /// Example: gpt-4o-transcribe - ///
- /// gpt-4o-transcribe - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.AnyOf Model { get; set; } + public global::tryAGI.OpenAI.AudioTranscription? InputAudioTranscription { get; set; } /// /// Configuration for turn detection. Can be set to `null` to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech. @@ -57,13 +45,6 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequest [global::System.Text.Json.Serialization.JsonPropertyName("turn_detection")] public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? TurnDetection { get; set; } - /// - /// The type of session to create. Always `transcription` for transcription sessions. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -75,7 +56,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequest /// /// /// The set of items to include in the transcription. Current available items are:
- /// - `item.input_audio_transcription.logprobs` + /// `item.input_audio_transcription.logprobs` /// /// /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
@@ -88,38 +69,25 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequest /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
/// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. /// - /// - /// Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service. - /// - /// - /// ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).
- /// Example: gpt-4o-transcribe - /// + /// /// /// Configuration for turn detection. Can be set to `null` to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech. /// - /// - /// The type of session to create. Always `transcription` for transcription sessions. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeTranscriptionSessionCreateRequest( - global::tryAGI.OpenAI.AnyOf model, global::System.Collections.Generic.IList? include, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? inputAudioFormat, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? inputAudioNoiseReduction, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? inputAudioTranscription, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? turnDetection, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType type) + global::tryAGI.OpenAI.AudioTranscription? inputAudioTranscription, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? turnDetection) { - this.Model = model; this.Include = include; this.InputAudioFormat = inputAudioFormat; this.InputAudioNoiseReduction = inputAudioNoiseReduction; this.InputAudioTranscription = inputAudioTranscription; this.TurnDetection = turnDetection; - this.Type = type; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGA.Json.g.cs similarity index 90% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGA.Json.g.cs index bc51ccf7..314e1751 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGA.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioTranscription + public sealed partial class RealtimeTranscriptionSessionCreateRequestGA { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA; } /// @@ -51,11 +51,11 @@ 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.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeTranscriptionSessionCreateRequestGA.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGA.g.cs new file mode 100644 index 00000000..17e403d4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGA.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Realtime transcription session object configuration. + /// + public sealed partial class RealtimeTranscriptionSessionCreateRequestGA + { + /// + /// Configuration for input and output audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Audio { get; set; } + + /// + /// Additional fields to include in server outputs.
+ /// `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("include")] + public global::System.Collections.Generic.IList? Include { get; set; } + + /// + /// The type of session to create. Always `transcription` for transcription sessions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGATypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Configuration for input and output audio. + /// + /// + /// Additional fields to include in server outputs.
+ /// `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// + /// + /// The type of session to create. Always `transcription` for transcription sessions. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranscriptionSessionCreateRequestGA( + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? audio, + global::System.Collections.Generic.IList? include, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType type) + { + this.Audio = audio; + this.Include = include; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranscriptionSessionCreateRequestGA() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudio.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudio.Json.g.cs new file mode 100644 index 00000000..c480b0d0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudio.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranscriptionSessionCreateRequestGAAudio + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio; + } + + /// + /// 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.RealtimeTranscriptionSessionCreateRequestGAAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranscriptionSessionCreateRequestGAAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudio.g.cs similarity index 76% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudio.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudio.g.cs index d64a5f96..ef2916a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudio.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudio.g.cs @@ -4,15 +4,15 @@ namespace tryAGI.OpenAI { /// - /// Configuration for input audio for the session. + /// Configuration for input and output audio. /// - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudio + public sealed partial class RealtimeTranscriptionSessionCreateRequestGAAudio { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInput? Input { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Input { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -21,22 +21,22 @@ public sealed partial class RealtimeTranscriptionSessionCreateResponseAudio 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. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeTranscriptionSessionCreateResponseAudio( - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInput? input) + public RealtimeTranscriptionSessionCreateRequestGAAudio( + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? input) { this.Input = input; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeTranscriptionSessionCreateResponseAudio() + public RealtimeTranscriptionSessionCreateRequestGAAudio() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInput.Json.g.cs new file mode 100644 index 00000000..77ff8a17 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranscriptionSessionCreateRequestGAAudioInput + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput; + } + + /// + /// 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.RealtimeTranscriptionSessionCreateRequestGAAudioInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranscriptionSessionCreateRequestGAAudioInput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInput.g.cs new file mode 100644 index 00000000..f6150847 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInput.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeTranscriptionSessionCreateRequestGAAudioInput + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeAudioFormatsJsonConverter))] + public global::tryAGI.OpenAI.RealtimeAudioFormats? Format { get; set; } + + /// + /// Configuration for input audio noise reduction. This can be set to `null` to turn off.
+ /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
+ /// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("noise_reduction")] + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? NoiseReduction { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] + public global::tryAGI.OpenAI.AudioTranscription? Transcription { get; set; } + + /// + /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
+ /// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
+ /// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("turn_detection")] + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection? TurnDetection { 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. + /// + /// + /// + /// Configuration for input audio noise reduction. This can be set to `null` to turn off.
+ /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
+ /// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. + /// + /// + /// + /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
+ /// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
+ /// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranscriptionSessionCreateRequestGAAudioInput( + global::tryAGI.OpenAI.RealtimeAudioFormats? format, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? noiseReduction, + global::tryAGI.OpenAI.AudioTranscription? transcription, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection? turnDetection) + { + this.Format = format; + this.NoiseReduction = noiseReduction; + this.Transcription = transcription; + this.TurnDetection = turnDetection; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranscriptionSessionCreateRequestGAAudioInput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction.Json.g.cs new file mode 100644 index 00000000..1f755a62 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction; + } + + /// + /// 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.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction.g.cs new file mode 100644 index 00000000..f35687e1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Configuration for input audio noise reduction. This can be set to `null` to turn off.
+ /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
+ /// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. + ///
+ public sealed partial class RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction + { + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter))] + public global::tryAGI.OpenAI.NoiseReductionType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction( + global::tryAGI.OpenAI.NoiseReductionType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection.Json.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection.Json.g.cs index f5543fb2..2ec4f702 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction + public sealed partial class RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection; } /// @@ -51,11 +51,11 @@ 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.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection.g.cs new file mode 100644 index 00000000..58949078 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection.g.cs @@ -0,0 +1,148 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
+ /// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
+ /// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency. + ///
+ public sealed partial class RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection + { + /// + /// Whether or not to automatically generate a response when a VAD stop event occurs.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("create_response")] + public bool? CreateResponse { get; set; } + + /// + /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.
+ /// Default Value: auto + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("eagerness")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness? Eagerness { get; set; } + + /// + /// Optional idle timeout after which turn detection will auto-timeout when
+ /// no additional audio is received. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("idle_timeout_ms")] + public int? IdleTimeoutMs { get; set; } + + /// + /// Whether or not to automatically interrupt any ongoing response with output to the default
+ /// conversation (i.e. `conversation` of `auto`) when a VAD start event occurs.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("interrupt_response")] + public bool? InterruptResponse { get; set; } + + /// + /// Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in
+ /// milliseconds). Defaults to 300ms. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prefix_padding_ms")] + public int? PrefixPaddingMs { get; set; } + + /// + /// Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults
+ /// to 500ms. With shorter values the model will respond more quickly,
+ /// but may jump in on short pauses from the user. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("silence_duration_ms")] + public int? SilenceDurationMs { get; set; } + + /// + /// Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A
+ /// higher threshold will require louder audio to activate the model, and
+ /// thus might perform better in noisy environments. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("threshold")] + public double? Threshold { get; set; } + + /// + /// Type of turn detection.
+ /// Default Value: server_vad + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether or not to automatically generate a response when a VAD stop event occurs.
+ /// Default Value: true + /// + /// + /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.
+ /// Default Value: auto + /// + /// + /// Optional idle timeout after which turn detection will auto-timeout when
+ /// no additional audio is received. + /// + /// + /// Whether or not to automatically interrupt any ongoing response with output to the default
+ /// conversation (i.e. `conversation` of `auto`) when a VAD start event occurs.
+ /// Default Value: true + /// + /// + /// Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in
+ /// milliseconds). Defaults to 300ms. + /// + /// + /// Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults
+ /// to 500ms. With shorter values the model will respond more quickly,
+ /// but may jump in on short pauses from the user. + /// + /// + /// Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A
+ /// higher threshold will require louder audio to activate the model, and
+ /// thus might perform better in noisy environments. + /// + /// + /// Type of turn detection.
+ /// Default Value: server_vad + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection( + bool? createResponse, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness? eagerness, + int? idleTimeoutMs, + bool? interruptResponse, + int? prefixPaddingMs, + int? silenceDurationMs, + double? threshold, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType? type) + { + this.CreateResponse = createResponse; + this.Eagerness = eagerness; + this.IdleTimeoutMs = idleTimeoutMs; + this.InterruptResponse = interruptResponse; + this.PrefixPaddingMs = prefixPaddingMs; + this.SilenceDurationMs = silenceDurationMs; + this.Threshold = threshold; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetection() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs new file mode 100644 index 00000000..6f55c135 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.
+ /// Default Value: auto + ///
+ public enum RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness + { + /// + /// + /// + Low, + /// + /// + /// + Medium, + /// + /// + /// + High, + /// + /// + /// + Auto, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagernessExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness value) + { + return value switch + { + RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.Low => "low", + RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.Medium => "medium", + RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.High => "high", + RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.Auto => "auto", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness? ToEnum(string value) + { + return value switch + { + "low" => RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.Low, + "medium" => RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.Medium, + "high" => RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.High, + "auto" => RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionEagerness.Auto, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.g.cs new file mode 100644 index 00000000..7bbd7110 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Type of turn detection.
+ /// Default Value: server_vad + ///
+ public enum RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType + { + /// + /// + /// + ServerVad, + /// + /// + /// + SemanticVad, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType value) + { + return value switch + { + RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.ServerVad => "server_vad", + RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.SemanticVad => "semantic_vad", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType? ToEnum(string value) + { + return value switch + { + "server_vad" => RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.ServerVad, + "semantic_vad" => RealtimeTranscriptionSessionCreateRequestGAAudioInputTurnDetectionType.SemanticVad, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseIncludeItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAIncludeItem.g.cs similarity index 62% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseIncludeItem.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAIncludeItem.g.cs index 3360b080..64877de0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseIncludeItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAIncludeItem.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public enum RealtimeTranscriptionSessionCreateResponseIncludeItem + public enum RealtimeTranscriptionSessionCreateRequestGAIncludeItem { /// /// @@ -17,27 +17,27 @@ public enum RealtimeTranscriptionSessionCreateResponseIncludeItem /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeTranscriptionSessionCreateResponseIncludeItemExtensions + public static class RealtimeTranscriptionSessionCreateRequestGAIncludeItemExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeTranscriptionSessionCreateResponseIncludeItem value) + public static string ToValueString(this RealtimeTranscriptionSessionCreateRequestGAIncludeItem value) { return value switch { - RealtimeTranscriptionSessionCreateResponseIncludeItem.ItemInputAudioTranscriptionLogprobs => "item.input_audio_transcription.logprobs", + RealtimeTranscriptionSessionCreateRequestGAIncludeItem.ItemInputAudioTranscriptionLogprobs => "item.input_audio_transcription.logprobs", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeTranscriptionSessionCreateResponseIncludeItem? ToEnum(string value) + public static RealtimeTranscriptionSessionCreateRequestGAIncludeItem? ToEnum(string value) { return value switch { - "item.input_audio_transcription.logprobs" => RealtimeTranscriptionSessionCreateResponseIncludeItem.ItemInputAudioTranscriptionLogprobs, + "item.input_audio_transcription.logprobs" => RealtimeTranscriptionSessionCreateRequestGAIncludeItem.ItemInputAudioTranscriptionLogprobs, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAType.g.cs similarity index 75% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAType.g.cs index 84631a68..c65a74a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestGAType.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// The type of session to create. Always `transcription` for transcription sessions. /// - public enum RealtimeTranscriptionSessionCreateRequestType + public enum RealtimeTranscriptionSessionCreateRequestGAType { /// /// @@ -17,27 +17,27 @@ public enum RealtimeTranscriptionSessionCreateRequestType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeTranscriptionSessionCreateRequestTypeExtensions + public static class RealtimeTranscriptionSessionCreateRequestGATypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeTranscriptionSessionCreateRequestType value) + public static string ToValueString(this RealtimeTranscriptionSessionCreateRequestGAType value) { return value switch { - RealtimeTranscriptionSessionCreateRequestType.Transcription => "transcription", + RealtimeTranscriptionSessionCreateRequestGAType.Transcription => "transcription", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeTranscriptionSessionCreateRequestType? ToEnum(string value) + public static RealtimeTranscriptionSessionCreateRequestGAType? ToEnum(string value) { return value switch { - "transcription" => RealtimeTranscriptionSessionCreateRequestType.Transcription, + "transcription" => RealtimeTranscriptionSessionCreateRequestGAType.Transcription, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction.g.cs index f8f5a968..46e44133 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction.g.cs @@ -14,8 +14,8 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioN /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeJsonConverter))] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.NoiseReductionTypeJsonConverter))] + public global::tryAGI.OpenAI.NoiseReductionType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -33,7 +33,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioN [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction( - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType? type) + global::tryAGI.OpenAI.NoiseReductionType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.g.cs deleted file mode 100644 index 01d94562..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones. - /// - public enum RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType - { - /// - /// - /// - NearField, - /// - /// - /// - FarField, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType value) - { - return value switch - { - RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.NearField => "near_field", - RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.FarField => "far_field", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType? ToEnum(string value) - { - return value switch - { - "near_field" => RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.NearField, - "far_field" => RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.FarField, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.g.cs deleted file mode 100644 index cddb5efc..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`. - /// - public enum RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel - { - /// - /// - /// - Gpt4oTranscribe, - /// - /// - /// - Gpt4oMiniTranscribe, - /// - /// - /// - Whisper1, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModelExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel value) - { - return value switch - { - RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.Gpt4oTranscribe => "gpt-4o-transcribe", - RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.Gpt4oMiniTranscribe => "gpt-4o-mini-transcribe", - RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.Whisper1 => "whisper-1", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel? ToEnum(string value) - { - return value switch - { - "gpt-4o-transcribe" => RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.Gpt4oTranscribe, - "gpt-4o-mini-transcribe" => RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.Gpt4oMiniTranscribe, - "whisper-1" => RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.Whisper1, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestModel.g.cs deleted file mode 100644 index f9bea8cf..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestModel.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// - /// - public enum RealtimeTranscriptionSessionCreateRequestModel - { - /// - /// - /// - Whisper1, - /// - /// - /// - Gpt4oTranscribe, - /// - /// - /// - Gpt4oMiniTranscribe, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RealtimeTranscriptionSessionCreateRequestModelExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RealtimeTranscriptionSessionCreateRequestModel value) - { - return value switch - { - RealtimeTranscriptionSessionCreateRequestModel.Whisper1 => "whisper-1", - RealtimeTranscriptionSessionCreateRequestModel.Gpt4oTranscribe => "gpt-4o-transcribe", - RealtimeTranscriptionSessionCreateRequestModel.Gpt4oMiniTranscribe => "gpt-4o-mini-transcribe", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RealtimeTranscriptionSessionCreateRequestModel? ToEnum(string value) - { - return value switch - { - "whisper-1" => RealtimeTranscriptionSessionCreateRequestModel.Whisper1, - "gpt-4o-transcribe" => RealtimeTranscriptionSessionCreateRequestModel.Gpt4oTranscribe, - "gpt-4o-mini-transcribe" => RealtimeTranscriptionSessionCreateRequestModel.Gpt4oMiniTranscribe, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponse.g.cs index 33e9bebf..34a75b0e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponse.g.cs @@ -4,40 +4,47 @@ namespace tryAGI.OpenAI { /// - /// A Realtime transcription session configuration object. + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. ///
public sealed partial class RealtimeTranscriptionSessionCreateResponse { /// - /// Configuration for input audio for the session. + /// Ephemeral key returned by the API. Only present when the session is
+ /// created on the server via REST API. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudio? Audio { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("client_secret")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret ClientSecret { get; set; } /// - /// Expiration timestamp for the session, in seconds since epoch. + /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")] - public int? ExpiresAt { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("input_audio_format")] + public string? InputAudioFormat { get; set; } /// - /// Unique identifier for the session that looks like `sess_1234567890abcdef`. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("input_audio_transcription")] + public global::tryAGI.OpenAI.AudioTranscription? InputAudioTranscription { get; set; } /// - /// Additional fields to include in server outputs.
- /// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// The set of modalities the model can respond with. To disable audio,
+ /// set this to ["text"]. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("include")] - public global::System.Collections.Generic.IList? Include { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modalities")] + public global::System.Collections.Generic.IList? Modalities { get; set; } /// - /// The object type. Always `realtime.transcription_session`. + /// Configuration for turn detection. Can be set to `null` to turn off. Server
+ /// VAD means that the model will detect the start and end of speech based on
+ /// audio volume and respond at the end of user speech. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("object")] - public string? Object { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("turn_detection")] + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? TurnDetection { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,37 +55,38 @@ public sealed partial class RealtimeTranscriptionSessionCreateResponse /// /// Initializes a new instance of the class. /// - /// - /// Configuration for input audio for the session. + /// + /// Ephemeral key returned by the API. Only present when the session is
+ /// created on the server via REST API. /// - /// - /// Expiration timestamp for the session, in seconds since epoch. + /// + /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. /// - /// - /// Unique identifier for the session that looks like `sess_1234567890abcdef`. + /// + /// + /// The set of modalities the model can respond with. To disable audio,
+ /// set this to ["text"]. /// - /// - /// Additional fields to include in server outputs.
- /// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. - /// - /// - /// The object type. Always `realtime.transcription_session`. + /// + /// Configuration for turn detection. Can be set to `null` to turn off. Server
+ /// VAD means that the model will detect the start and end of speech based on
+ /// audio volume and respond at the end of user speech. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeTranscriptionSessionCreateResponse( - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudio? audio, - int? expiresAt, - string? id, - global::System.Collections.Generic.IList? include, - string? @object) + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret clientSecret, + string? inputAudioFormat, + global::tryAGI.OpenAI.AudioTranscription? inputAudioTranscription, + global::System.Collections.Generic.IList? modalities, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? turnDetection) { - this.Audio = audio; - this.ExpiresAt = expiresAt; - this.Id = id; - this.Include = include; - this.Object = @object; + this.ClientSecret = clientSecret ?? throw new global::System.ArgumentNullException(nameof(clientSecret)); + this.InputAudioFormat = inputAudioFormat; + this.InputAudioTranscription = inputAudioTranscription; + this.Modalities = modalities; + this.TurnDetection = turnDetection; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInput.g.cs deleted file mode 100644 index 031d0aa9..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInput.g.cs +++ /dev/null @@ -1,78 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// - /// - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInput - { - /// - /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// Configuration for input audio noise reduction. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("noise_reduction")] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction? NoiseReduction { get; set; } - - /// - /// Configuration of the transcription model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription? Transcription { get; set; } - - /// - /// Configuration for turn detection. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("turn_detection")] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection? TurnDetection { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. - /// - /// - /// Configuration for input audio noise reduction. - /// - /// - /// Configuration of the transcription model. - /// - /// - /// Configuration for turn detection. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RealtimeTranscriptionSessionCreateResponseAudioInput( - string? format, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReduction? noiseReduction, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription? transcription, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection? turnDetection) - { - this.Format = format; - this.NoiseReduction = noiseReduction; - this.Transcription = transcription; - this.TurnDetection = turnDetection; - } - - /// - /// Initializes a new instance of the class. - /// - public RealtimeTranscriptionSessionCreateResponseAudioInput() - { - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription.g.cs deleted file mode 100644 index f5d98462..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription.g.cs +++ /dev/null @@ -1,72 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// Configuration of the transcription model. - /// - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInputTranscription - { - /// - /// The language of the input audio. Supplying the input language in
- /// [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format
- /// will improve accuracy and latency. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language")] - public string? Language { get; set; } - - /// - /// The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelJsonConverter))] - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel? Model { get; set; } - - /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match the audio language. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - public string? Prompt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The language of the input audio. Supplying the input language in
- /// [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format
- /// will improve accuracy and latency. - /// - /// - /// The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`. - /// - /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match the audio language. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RealtimeTranscriptionSessionCreateResponseAudioInputTranscription( - string? language, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel? model, - string? prompt) - { - this.Language = language; - this.Model = model; - this.Prompt = prompt; - } - - /// - /// Initializes a new instance of the class. - /// - public RealtimeTranscriptionSessionCreateResponseAudioInputTranscription() - { - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.g.cs deleted file mode 100644 index 3ce2c950..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`. - /// - public enum RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel - { - /// - /// - /// - Gpt4oTranscribe, - /// - /// - /// - Gpt4oMiniTranscribe, - /// - /// - /// - Whisper1, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModelExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel value) - { - return value switch - { - RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.Gpt4oTranscribe => "gpt-4o-transcribe", - RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.Gpt4oMiniTranscribe => "gpt-4o-mini-transcribe", - RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.Whisper1 => "whisper-1", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel? ToEnum(string value) - { - return value switch - { - "gpt-4o-transcribe" => RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.Gpt4oTranscribe, - "gpt-4o-mini-transcribe" => RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.Gpt4oMiniTranscribe, - "whisper-1" => RealtimeTranscriptionSessionCreateResponseAudioInputTranscriptionModel.Whisper1, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection.Json.g.cs deleted file mode 100644 index f69394e9..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI -{ - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection - { - /// - /// 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 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) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection; - } - - /// - /// 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.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - 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.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection; - } - - /// - /// 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) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseClientSecret.Json.g.cs similarity index 91% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInput.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseClientSecret.Json.g.cs index 58f6eb75..aafd76ed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInput.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseClientSecret.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInput + public sealed partial class RealtimeTranscriptionSessionCreateResponseClientSecret { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInput? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInput), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInput; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret; } /// @@ -51,11 +51,11 @@ 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.RealtimeTranscriptionSessionCreateResponseAudioInput? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeTranscriptionSessionCreateResponseAudioInput), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInput; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeTranscriptionSessionCreateResponseClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseClientSecret.g.cs new file mode 100644 index 00000000..c4a1d401 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseClientSecret.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Ephemeral key returned by the API. Only present when the session is
+ /// created on the server via REST API. + ///
+ public sealed partial class RealtimeTranscriptionSessionCreateResponseClientSecret + { + /// + /// Timestamp for when the token expires. Currently, all tokens expire
+ /// after one minute. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ExpiresAt { get; set; } + + /// + /// Ephemeral key usable in client environments to authenticate connections
+ /// to the Realtime API. Use this in client-side environments rather than
+ /// a standard API token, which should only be used server-side. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Value { 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. + /// + /// + /// Timestamp for when the token expires. Currently, all tokens expire
+ /// after one minute. + /// + /// + /// Ephemeral key usable in client environments to authenticate connections
+ /// to the Realtime API. Use this in client-side environments rather than
+ /// a standard API token, which should only be used server-side. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeTranscriptionSessionCreateResponseClientSecret( + int expiresAt, + string value) + { + this.ExpiresAt = expiresAt; + this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeTranscriptionSessionCreateResponseClientSecret() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalitie.g.cs similarity index 57% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalitie.g.cs index 7bbe1ac9..f83ef8e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalitie.g.cs @@ -6,44 +6,44 @@ namespace tryAGI.OpenAI /// /// /// - public enum RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType + public enum RealtimeTranscriptionSessionCreateResponseModalitie { /// /// /// - NearField, + Text, /// /// /// - FarField, + Audio, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionTypeExtensions + public static class RealtimeTranscriptionSessionCreateResponseModalitieExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType value) + public static string ToValueString(this RealtimeTranscriptionSessionCreateResponseModalitie value) { return value switch { - RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.NearField => "near_field", - RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.FarField => "far_field", + RealtimeTranscriptionSessionCreateResponseModalitie.Text => "text", + RealtimeTranscriptionSessionCreateResponseModalitie.Audio => "audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType? ToEnum(string value) + public static RealtimeTranscriptionSessionCreateResponseModalitie? ToEnum(string value) { return value switch { - "near_field" => RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.NearField, - "far_field" => RealtimeTranscriptionSessionCreateResponseAudioInputNoiseReductionType.FarField, + "text" => RealtimeTranscriptionSessionCreateResponseModalitie.Text, + "audio" => RealtimeTranscriptionSessionCreateResponseModalitie.Audio, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudio.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalities.Json.g.cs similarity index 92% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudio.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalities.Json.g.cs index 33570db6..dcec8845 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudio.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalities.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudio + public sealed partial class RealtimeTranscriptionSessionCreateResponseModalities { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudio? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalities? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudio), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudio; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalities), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalities; } /// @@ -51,11 +51,11 @@ 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.RealtimeTranscriptionSessionCreateResponseAudio? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalities? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeTranscriptionSessionCreateResponseAudio), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudio; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalities), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalities; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeSessionCreateResponseOutputModalities.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalities.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseOutputModalities.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalities.g.cs index 7d546538..b1b4b9c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponseOutputModalities.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseModalities.g.cs @@ -7,7 +7,7 @@ namespace tryAGI.OpenAI /// The set of modalities the model can respond with. To disable audio,
/// set this to ["text"]. ///
- public sealed partial class RealtimeSessionCreateResponseOutputModalities + public sealed partial class RealtimeTranscriptionSessionCreateResponseModalities { /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseTurnDetection.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseTurnDetection.Json.g.cs index 25169ec4..7cf5cce4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseTurnDetection.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInputTranscription + public sealed partial class RealtimeTranscriptionSessionCreateResponseTurnDetection { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription), - jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection; } /// @@ -51,11 +51,11 @@ 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.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription? FromJson( + public static global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseAudioInputTranscription; + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection; } /// @@ -80,11 +80,11 @@ 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) { - 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.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseTurnDetection.g.cs similarity index 52% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseTurnDetection.g.cs index 46be5dbe..0ef0eed8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseTurnDetection.g.cs @@ -4,24 +4,31 @@ namespace tryAGI.OpenAI { /// - /// Configuration for turn detection. + /// Configuration for turn detection. Can be set to `null` to turn off. Server
+ /// VAD means that the model will detect the start and end of speech based on
+ /// audio volume and respond at the end of user speech. ///
- public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection + public sealed partial class RealtimeTranscriptionSessionCreateResponseTurnDetection { /// - /// + /// Amount of audio to include before the VAD detected speech (in
+ /// milliseconds). Defaults to 300ms. ///
[global::System.Text.Json.Serialization.JsonPropertyName("prefix_padding_ms")] public int? PrefixPaddingMs { get; set; } /// - /// + /// Duration of silence to detect speech stop (in milliseconds). Defaults
+ /// to 500ms. With shorter values the model will respond more quickly,
+ /// but may jump in on short pauses from the user. ///
[global::System.Text.Json.Serialization.JsonPropertyName("silence_duration_ms")] public int? SilenceDurationMs { get; set; } /// - /// + /// Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A
+ /// higher threshold will require louder audio to activate the model, and
+ /// thus might perform better in noisy environments. ///
[global::System.Text.Json.Serialization.JsonPropertyName("threshold")] public double? Threshold { get; set; } @@ -39,18 +46,29 @@ public sealed partial class RealtimeTranscriptionSessionCreateResponseAudioInput 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. /// - /// - /// - /// + /// + /// Amount of audio to include before the VAD detected speech (in
+ /// milliseconds). Defaults to 300ms. + /// + /// + /// Duration of silence to detect speech stop (in milliseconds). Defaults
+ /// to 500ms. With shorter values the model will respond more quickly,
+ /// but may jump in on short pauses from the user. + /// + /// + /// Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A
+ /// higher threshold will require louder audio to activate the model, and
+ /// thus might perform better in noisy environments. + /// /// /// Type of turn detection, only `server_vad` is currently supported. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection( + public RealtimeTranscriptionSessionCreateResponseTurnDetection( int? prefixPaddingMs, int? silenceDurationMs, double? threshold, @@ -63,9 +81,9 @@ public RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RealtimeTranscriptionSessionCreateResponseAudioInputTurnDetection() + public RealtimeTranscriptionSessionCreateResponseTurnDetection() { } } 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 54c17aff..fa657216 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 @@ -6,13 +6,12 @@ namespace tryAGI.OpenAI { /// /// Controls how the realtime conversation is truncated prior to model inference.
- /// The default is `auto`. When set to `retention_ratio`, the server retains a
- /// fraction of the conversation tokens prior to the instructions. + /// The default is `auto`. ///
public readonly partial struct RealtimeTruncation : global::System.IEquatable { /// - /// The truncation strategy to use for the session. + /// The truncation strategy to use for the session. `auto` is the default truncation strategy. `disabled` will disable truncation and emit errors when the conversation exceeds the input token limit. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RealtimeTruncationEnum? Value1 { get; init; } @@ -47,7 +46,7 @@ public RealtimeTruncation(global::tryAGI.OpenAI.RealtimeTruncationEnum? value) } /// - /// Retain a fraction of the conversation tokens. + /// Retain a fraction of the conversation tokens when the conversation exceeds the input token limit. This allows you to amortize truncations across multiple turns, which can help improve cached token usage. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Value2 { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncationEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncationEnum.g.cs index c32ac956..91eede13 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncationEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncationEnum.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// The truncation strategy to use for the session. + /// The truncation strategy to use for the session. `auto` is the default truncation strategy. `disabled` will disable truncation and emit errors when the conversation exceeds the input token limit. /// public enum RealtimeTruncationEnum { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncationEnum2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncationEnum2.g.cs index d503d6d1..f8f6d175 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncationEnum2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncationEnum2.g.cs @@ -4,18 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Retain a fraction of the conversation tokens. + /// Retain a fraction of the conversation tokens when the conversation exceeds the input token limit. This allows you to amortize truncations across multiple turns, which can help improve cached token usage. /// public sealed partial class RealtimeTruncationEnum2 { /// - /// Optional cap on tokens allowed after the instructions. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("post_instructions_token_limit")] - public int? PostInstructionsTokenLimit { get; set; } - - /// - /// Fraction of pre-instruction conversation tokens to retain (0.0 - 1.0). + /// Fraction of post-instruction conversation tokens to retain (0.0 - 1.0) when the conversation exceeds the input token limit. /// [global::System.Text.Json.Serialization.JsonPropertyName("retention_ratio")] [global::System.Text.Json.Serialization.JsonRequired] @@ -37,11 +31,8 @@ public sealed partial class RealtimeTruncationEnum2 /// /// Initializes a new instance of the class. /// - /// - /// Optional cap on tokens allowed after the instructions. - /// /// - /// Fraction of pre-instruction conversation tokens to retain (0.0 - 1.0). + /// Fraction of post-instruction conversation tokens to retain (0.0 - 1.0) when the conversation exceeds the input token limit. /// /// /// Use retention ratio truncation. @@ -51,11 +42,9 @@ public sealed partial class RealtimeTruncationEnum2 #endif public RealtimeTruncationEnum2( double retentionRatio, - int? postInstructionsTokenLimit, global::tryAGI.OpenAI.RealtimeTruncationEnumType type) { this.RetentionRatio = retentionRatio; - this.PostInstructionsTokenLimit = postInstructionsTokenLimit; this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseProperties.g.cs index 50eda98e..745e6bca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseProperties.g.cs @@ -74,8 +74,8 @@ public sealed partial class ResponseProperties /// the model can call. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoice3JsonConverter))] - public global::tryAGI.OpenAI.ToolChoice3? ToolChoice { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoice5JsonConverter))] + public global::tryAGI.OpenAI.ToolChoice5? ToolChoice { get; set; } /// /// An array of tools the model may call while generating a response. You
@@ -198,7 +198,7 @@ public ResponseProperties( global::tryAGI.OpenAI.Prompt2? prompt, global::tryAGI.OpenAI.Reasoning? reasoning, global::tryAGI.OpenAI.ResponsePropertiesText? text, - global::tryAGI.OpenAI.ToolChoice3? toolChoice, + global::tryAGI.OpenAI.ToolChoice5? toolChoice, global::System.Collections.Generic.IList? tools, global::tryAGI.OpenAI.ResponsePropertiesTruncation? truncation) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session.g.cs index 7a4236b1..0da1c2cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session.g.cs @@ -14,98 +14,98 @@ namespace tryAGI.OpenAI /// Realtime session object configuration. ///
#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? RealtimeCreateRequest { get; init; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? RealtimeCreateRequestGA { get; init; } #else - public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? RealtimeCreateRequest { get; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? RealtimeCreateRequestGA { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RealtimeCreateRequest))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RealtimeCreateRequestGA))] #endif - public bool IsRealtimeCreateRequest => RealtimeCreateRequest != null; + public bool IsRealtimeCreateRequestGA => RealtimeCreateRequestGA != null; /// /// /// - public static implicit operator Session(global::tryAGI.OpenAI.RealtimeSessionCreateRequest value) => new Session((global::tryAGI.OpenAI.RealtimeSessionCreateRequest?)value); + public static implicit operator Session(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA value) => new Session((global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.RealtimeSessionCreateRequest?(Session @this) => @this.RealtimeCreateRequest; + public static implicit operator global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA?(Session @this) => @this.RealtimeCreateRequestGA; /// /// /// - public Session(global::tryAGI.OpenAI.RealtimeSessionCreateRequest? value) + public Session(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? value) { - RealtimeCreateRequest = value; + RealtimeCreateRequestGA = value; } /// /// Realtime transcription session object configuration. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? RealtimeTranscriptionCreateRequest { get; init; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? RealtimeTranscriptionCreateRequestGA { get; init; } #else - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? RealtimeTranscriptionCreateRequest { get; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? RealtimeTranscriptionCreateRequestGA { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RealtimeTranscriptionCreateRequest))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RealtimeTranscriptionCreateRequestGA))] #endif - public bool IsRealtimeTranscriptionCreateRequest => RealtimeTranscriptionCreateRequest != null; + public bool IsRealtimeTranscriptionCreateRequestGA => RealtimeTranscriptionCreateRequestGA != null; /// /// /// - public static implicit operator Session(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest value) => new Session((global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest?)value); + public static implicit operator Session(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA value) => new Session((global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest?(Session @this) => @this.RealtimeTranscriptionCreateRequest; + public static implicit operator global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA?(Session @this) => @this.RealtimeTranscriptionCreateRequestGA; /// /// /// - public Session(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? value) + public Session(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? value) { - RealtimeTranscriptionCreateRequest = value; + RealtimeTranscriptionCreateRequestGA = value; } /// /// /// public Session( - global::tryAGI.OpenAI.RealtimeSessionCreateRequest? realtimeCreateRequest, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? realtimeTranscriptionCreateRequest + global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? realtimeCreateRequestGA, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? realtimeTranscriptionCreateRequestGA ) { - RealtimeCreateRequest = realtimeCreateRequest; - RealtimeTranscriptionCreateRequest = realtimeTranscriptionCreateRequest; + RealtimeCreateRequestGA = realtimeCreateRequestGA; + RealtimeTranscriptionCreateRequestGA = realtimeTranscriptionCreateRequestGA; } /// /// /// public object? Object => - RealtimeTranscriptionCreateRequest as object ?? - RealtimeCreateRequest as object + RealtimeTranscriptionCreateRequestGA as object ?? + RealtimeCreateRequestGA as object ; /// /// /// public override string? ToString() => - RealtimeCreateRequest?.ToString() ?? - RealtimeTranscriptionCreateRequest?.ToString() + RealtimeCreateRequestGA?.ToString() ?? + RealtimeTranscriptionCreateRequestGA?.ToString() ; /// @@ -113,15 +113,15 @@ RealtimeCreateRequest as object /// public bool Validate() { - return IsRealtimeCreateRequest || IsRealtimeTranscriptionCreateRequest; + return IsRealtimeCreateRequestGA || IsRealtimeTranscriptionCreateRequestGA; } /// /// /// public TResult? Match( - global::System.Func? realtimeCreateRequest = null, - global::System.Func? realtimeTranscriptionCreateRequest = null, + global::System.Func? realtimeCreateRequestGA = null, + global::System.Func? realtimeTranscriptionCreateRequestGA = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsRealtimeCreateRequest && realtimeCreateRequest != null) + if (IsRealtimeCreateRequestGA && realtimeCreateRequestGA != null) { - return realtimeCreateRequest(RealtimeCreateRequest!); + return realtimeCreateRequestGA(RealtimeCreateRequestGA!); } - else if (IsRealtimeTranscriptionCreateRequest && realtimeTranscriptionCreateRequest != null) + else if (IsRealtimeTranscriptionCreateRequestGA && realtimeTranscriptionCreateRequestGA != null) { - return realtimeTranscriptionCreateRequest(RealtimeTranscriptionCreateRequest!); + return realtimeTranscriptionCreateRequestGA(RealtimeTranscriptionCreateRequestGA!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// ///
public void Match( - global::System.Action? realtimeCreateRequest = null, - global::System.Action? realtimeTranscriptionCreateRequest = null, + global::System.Action? realtimeCreateRequestGA = null, + global::System.Action? realtimeTranscriptionCreateRequestGA = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsRealtimeCreateRequest) + if (IsRealtimeCreateRequestGA) { - realtimeCreateRequest?.Invoke(RealtimeCreateRequest!); + realtimeCreateRequestGA?.Invoke(RealtimeCreateRequestGA!); } - else if (IsRealtimeTranscriptionCreateRequest) + else if (IsRealtimeTranscriptionCreateRequestGA) { - realtimeTranscriptionCreateRequest?.Invoke(RealtimeTranscriptionCreateRequest!); + realtimeTranscriptionCreateRequestGA?.Invoke(RealtimeTranscriptionCreateRequestGA!); } } @@ -171,10 +171,10 @@ public override int GetHashCode() { var fields = new object?[] { - RealtimeCreateRequest, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequest), - RealtimeTranscriptionCreateRequest, - typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest), + RealtimeCreateRequestGA, + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA), + RealtimeTranscriptionCreateRequestGA, + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -191,8 +191,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Session other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RealtimeCreateRequest, other.RealtimeCreateRequest) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RealtimeTranscriptionCreateRequest, other.RealtimeTranscriptionCreateRequest) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RealtimeCreateRequestGA, other.RealtimeCreateRequestGA) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RealtimeTranscriptionCreateRequestGA, other.RealtimeTranscriptionCreateRequestGA) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.Json.g.cs new file mode 100644 index 00000000..53daf387 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct Session2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.Session2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.Session2), + jsonSerializerContext) as global::tryAGI.OpenAI.Session2?; + } + + /// + /// 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.Session2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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.Session2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.Session2?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} 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 new file mode 100644 index 00000000..ad3a7bcd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs @@ -0,0 +1,226 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The session configuration for either a realtime or transcription session. + /// + public readonly partial struct Session2 : global::System.IEquatable + { + /// + /// A new Realtime session configuration, with an ephemeral key. Default TTL
+ /// for keys is one minute. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? RealtimeSessionCreateResponse { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? RealtimeSessionCreateResponse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RealtimeSessionCreateResponse))] +#endif + public bool IsRealtimeSessionCreateResponse => RealtimeSessionCreateResponse != null; + + /// + /// + /// + public static implicit operator Session2(global::tryAGI.OpenAI.RealtimeSessionCreateResponse value) => new Session2((global::tryAGI.OpenAI.RealtimeSessionCreateResponse?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeSessionCreateResponse?(Session2 @this) => @this.RealtimeSessionCreateResponse; + + /// + /// + /// + public Session2(global::tryAGI.OpenAI.RealtimeSessionCreateResponse? value) + { + RealtimeSessionCreateResponse = value; + } + + /// + /// A new Realtime transcription session configuration.
+ /// When a session is created on the server via REST API, the session object
+ /// also contains an ephemeral key. Default TTL for keys is 10 minutes. This
+ /// property is not present when a session is updated via the WebSocket API. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? RealtimeTranscriptionSessionCreateResponse { get; init; } +#else + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? RealtimeTranscriptionSessionCreateResponse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RealtimeTranscriptionSessionCreateResponse))] +#endif + public bool IsRealtimeTranscriptionSessionCreateResponse => RealtimeTranscriptionSessionCreateResponse != null; + + /// + /// + /// + public static implicit operator Session2(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse value) => new Session2((global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse?(Session2 @this) => @this.RealtimeTranscriptionSessionCreateResponse; + + /// + /// + /// + public Session2(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? value) + { + RealtimeTranscriptionSessionCreateResponse = value; + } + + /// + /// + /// + public Session2( + global::tryAGI.OpenAI.RealtimeSessionCreateResponse? realtimeSessionCreateResponse, + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? realtimeTranscriptionSessionCreateResponse + ) + { + RealtimeSessionCreateResponse = realtimeSessionCreateResponse; + RealtimeTranscriptionSessionCreateResponse = realtimeTranscriptionSessionCreateResponse; + } + + /// + /// + /// + public object? Object => + RealtimeTranscriptionSessionCreateResponse as object ?? + RealtimeSessionCreateResponse as object + ; + + /// + /// + /// + public override string? ToString() => + RealtimeSessionCreateResponse?.ToString() ?? + RealtimeTranscriptionSessionCreateResponse?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsRealtimeSessionCreateResponse || IsRealtimeTranscriptionSessionCreateResponse; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? realtimeSessionCreateResponse = null, + global::System.Func? realtimeTranscriptionSessionCreateResponse = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsRealtimeSessionCreateResponse && realtimeSessionCreateResponse != null) + { + return realtimeSessionCreateResponse(RealtimeSessionCreateResponse!); + } + else if (IsRealtimeTranscriptionSessionCreateResponse && realtimeTranscriptionSessionCreateResponse != null) + { + return realtimeTranscriptionSessionCreateResponse(RealtimeTranscriptionSessionCreateResponse!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? realtimeSessionCreateResponse = null, + global::System.Action? realtimeTranscriptionSessionCreateResponse = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsRealtimeSessionCreateResponse) + { + realtimeSessionCreateResponse?.Invoke(RealtimeSessionCreateResponse!); + } + else if (IsRealtimeTranscriptionSessionCreateResponse) + { + realtimeTranscriptionSessionCreateResponse?.Invoke(RealtimeTranscriptionSessionCreateResponse!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + RealtimeSessionCreateResponse, + typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponse), + RealtimeTranscriptionSessionCreateResponse, + typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Session2 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(RealtimeSessionCreateResponse, other.RealtimeSessionCreateResponse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RealtimeTranscriptionSessionCreateResponse, other.RealtimeTranscriptionSessionCreateResponse) + ; + } + + /// + /// + /// + public static bool operator ==(Session2 obj1, Session2 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Session2 obj1, Session2 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Session2 o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice3.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice5.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice3.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice5.Json.g.cs index a9b738d8..f12c6368 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice3.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice5.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public readonly partial struct ToolChoice3 + public readonly partial struct ToolChoice5 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.ToolChoice3? FromJson( + public static global::tryAGI.OpenAI.ToolChoice5? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.ToolChoice3), - jsonSerializerContext) as global::tryAGI.OpenAI.ToolChoice3?; + typeof(global::tryAGI.OpenAI.ToolChoice5), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolChoice5?; } /// @@ -51,11 +51,11 @@ 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.ToolChoice3? FromJson( + public static global::tryAGI.OpenAI.ToolChoice5? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.ToolChoice3), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolChoice3?; + typeof(global::tryAGI.OpenAI.ToolChoice5), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolChoice5?; } /// @@ -80,11 +80,11 @@ 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) { - 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.ToolChoice3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice5.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice3.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice5.g.cs index 4347029d..e219874f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice5.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI /// a response. See the `tools` parameter to see how to specify which tools
/// the model can call. ///
- public readonly partial struct ToolChoice3 : global::System.IEquatable + public readonly partial struct ToolChoice5 : global::System.IEquatable { /// /// Controls which (if any) tool is called by the model.
@@ -35,17 +35,17 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator ToolChoice3(global::tryAGI.OpenAI.ToolChoiceOptions value) => new ToolChoice3((global::tryAGI.OpenAI.ToolChoiceOptions?)value); + public static implicit operator ToolChoice5(global::tryAGI.OpenAI.ToolChoiceOptions value) => new ToolChoice5((global::tryAGI.OpenAI.ToolChoiceOptions?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.ToolChoiceOptions?(ToolChoice3 @this) => @this.ChoiceOptions; + public static implicit operator global::tryAGI.OpenAI.ToolChoiceOptions?(ToolChoice5 @this) => @this.ChoiceOptions; /// /// /// - public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceOptions? value) + public ToolChoice5(global::tryAGI.OpenAI.ToolChoiceOptions? value) { ChoiceOptions = value; } @@ -70,17 +70,17 @@ public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceOptions? value) /// /// /// - public static implicit operator ToolChoice3(global::tryAGI.OpenAI.ToolChoiceAllowed value) => new ToolChoice3((global::tryAGI.OpenAI.ToolChoiceAllowed?)value); + public static implicit operator ToolChoice5(global::tryAGI.OpenAI.ToolChoiceAllowed value) => new ToolChoice5((global::tryAGI.OpenAI.ToolChoiceAllowed?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.ToolChoiceAllowed?(ToolChoice3 @this) => @this.ChoiceAllowed; + public static implicit operator global::tryAGI.OpenAI.ToolChoiceAllowed?(ToolChoice5 @this) => @this.ChoiceAllowed; /// /// /// - public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceAllowed? value) + public ToolChoice5(global::tryAGI.OpenAI.ToolChoiceAllowed? value) { ChoiceAllowed = value; } @@ -106,17 +106,17 @@ public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceAllowed? value) /// /// /// - public static implicit operator ToolChoice3(global::tryAGI.OpenAI.ToolChoiceTypes value) => new ToolChoice3((global::tryAGI.OpenAI.ToolChoiceTypes?)value); + public static implicit operator ToolChoice5(global::tryAGI.OpenAI.ToolChoiceTypes value) => new ToolChoice5((global::tryAGI.OpenAI.ToolChoiceTypes?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.ToolChoiceTypes?(ToolChoice3 @this) => @this.ChoiceTypes; + public static implicit operator global::tryAGI.OpenAI.ToolChoiceTypes?(ToolChoice5 @this) => @this.ChoiceTypes; /// /// /// - public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceTypes? value) + public ToolChoice5(global::tryAGI.OpenAI.ToolChoiceTypes? value) { ChoiceTypes = value; } @@ -141,17 +141,17 @@ public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceTypes? value) /// /// /// - public static implicit operator ToolChoice3(global::tryAGI.OpenAI.ToolChoiceFunction value) => new ToolChoice3((global::tryAGI.OpenAI.ToolChoiceFunction?)value); + public static implicit operator ToolChoice5(global::tryAGI.OpenAI.ToolChoiceFunction value) => new ToolChoice5((global::tryAGI.OpenAI.ToolChoiceFunction?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.ToolChoiceFunction?(ToolChoice3 @this) => @this.ChoiceFunction; + public static implicit operator global::tryAGI.OpenAI.ToolChoiceFunction?(ToolChoice5 @this) => @this.ChoiceFunction; /// /// /// - public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceFunction? value) + public ToolChoice5(global::tryAGI.OpenAI.ToolChoiceFunction? value) { ChoiceFunction = value; } @@ -176,17 +176,17 @@ public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceFunction? value) /// /// /// - public static implicit operator ToolChoice3(global::tryAGI.OpenAI.ToolChoiceMCP value) => new ToolChoice3((global::tryAGI.OpenAI.ToolChoiceMCP?)value); + public static implicit operator ToolChoice5(global::tryAGI.OpenAI.ToolChoiceMCP value) => new ToolChoice5((global::tryAGI.OpenAI.ToolChoiceMCP?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.ToolChoiceMCP?(ToolChoice3 @this) => @this.ChoiceMCP; + public static implicit operator global::tryAGI.OpenAI.ToolChoiceMCP?(ToolChoice5 @this) => @this.ChoiceMCP; /// /// /// - public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceMCP? value) + public ToolChoice5(global::tryAGI.OpenAI.ToolChoiceMCP? value) { ChoiceMCP = value; } @@ -211,17 +211,17 @@ public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceMCP? value) /// /// /// - public static implicit operator ToolChoice3(global::tryAGI.OpenAI.ToolChoiceCustom value) => new ToolChoice3((global::tryAGI.OpenAI.ToolChoiceCustom?)value); + public static implicit operator ToolChoice5(global::tryAGI.OpenAI.ToolChoiceCustom value) => new ToolChoice5((global::tryAGI.OpenAI.ToolChoiceCustom?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.ToolChoiceCustom?(ToolChoice3 @this) => @this.ChoiceCustom; + public static implicit operator global::tryAGI.OpenAI.ToolChoiceCustom?(ToolChoice5 @this) => @this.ChoiceCustom; /// /// /// - public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceCustom? value) + public ToolChoice5(global::tryAGI.OpenAI.ToolChoiceCustom? value) { ChoiceCustom = value; } @@ -229,7 +229,7 @@ public ToolChoice3(global::tryAGI.OpenAI.ToolChoiceCustom? value) /// /// /// - public ToolChoice3( + public ToolChoice5( global::tryAGI.OpenAI.ToolChoiceOptions? choiceOptions, global::tryAGI.OpenAI.ToolChoiceAllowed? choiceAllowed, global::tryAGI.OpenAI.ToolChoiceTypes? choiceTypes, @@ -398,7 +398,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(ToolChoice3 other) + public bool Equals(ToolChoice5 other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ChoiceOptions, other.ChoiceOptions) && @@ -413,15 +413,15 @@ public bool Equals(ToolChoice3 other) /// /// /// - public static bool operator ==(ToolChoice3 obj1, ToolChoice3 obj2) + public static bool operator ==(ToolChoice5 obj1, ToolChoice5 obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(ToolChoice3 obj1, ToolChoice3 obj2) + public static bool operator !=(ToolChoice5 obj1, ToolChoice5 obj2) { return !(obj1 == obj2); } @@ -431,7 +431,7 @@ public bool Equals(ToolChoice3 other) ///
public override bool Equals(object? obj) { - return obj is ToolChoice3 o && Equals(o); + return obj is ToolChoice5 o && Equals(o); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem4.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem5.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem4.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem5.Json.g.cs index cf86291b..51e31e4b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem4.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem5.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public readonly partial struct ToolsItem4 + public readonly partial struct ToolsItem5 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.ToolsItem4? FromJson( + public static global::tryAGI.OpenAI.ToolsItem5? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.ToolsItem4), - jsonSerializerContext) as global::tryAGI.OpenAI.ToolsItem4?; + typeof(global::tryAGI.OpenAI.ToolsItem5), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolsItem5?; } /// @@ -51,11 +51,11 @@ 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.ToolsItem4? FromJson( + public static global::tryAGI.OpenAI.ToolsItem5? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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.ToolsItem4), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolsItem4?; + typeof(global::tryAGI.OpenAI.ToolsItem5), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolsItem5?; } /// @@ -80,11 +80,11 @@ 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) { - 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.ToolsItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem5.g.cs similarity index 57% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem4.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem5.g.cs index e0126cc2..a2fdc933 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem5.g.cs @@ -7,41 +7,41 @@ namespace tryAGI.OpenAI /// /// /// - public readonly partial struct ToolsItem4 : global::System.IEquatable + public readonly partial struct ToolsItem5 : global::System.IEquatable { /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1? Value1 { get; init; } + public global::tryAGI.OpenAI.RealtimeFunctionTool? RealtimeFunctionTool { get; init; } #else - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1? Value1 { get; } + public global::tryAGI.OpenAI.RealtimeFunctionTool? RealtimeFunctionTool { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RealtimeFunctionTool))] #endif - public bool IsValue1 => Value1 != null; + public bool IsRealtimeFunctionTool => RealtimeFunctionTool != null; /// /// /// - public static implicit operator ToolsItem4(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1 value) => new ToolsItem4((global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1?)value); + public static implicit operator ToolsItem5(global::tryAGI.OpenAI.RealtimeFunctionTool value) => new ToolsItem5((global::tryAGI.OpenAI.RealtimeFunctionTool?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1?(ToolsItem4 @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.RealtimeFunctionTool?(ToolsItem5 @this) => @this.RealtimeFunctionTool; /// /// /// - public ToolsItem4(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1? value) + public ToolsItem5(global::tryAGI.OpenAI.RealtimeFunctionTool? value) { - Value1 = value; + RealtimeFunctionTool = value; } /// @@ -49,63 +49,63 @@ public ToolsItem4(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1 /// (MCP) servers. [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp). /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.MCPTool? Value2 { get; init; } + public global::tryAGI.OpenAI.MCPTool? MCPTool { get; init; } #else - public global::tryAGI.OpenAI.MCPTool? Value2 { get; } + public global::tryAGI.OpenAI.MCPTool? MCPTool { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCPTool))] #endif - public bool IsValue2 => Value2 != null; + public bool IsMCPTool => MCPTool != null; /// /// /// - public static implicit operator ToolsItem4(global::tryAGI.OpenAI.MCPTool value) => new ToolsItem4((global::tryAGI.OpenAI.MCPTool?)value); + public static implicit operator ToolsItem5(global::tryAGI.OpenAI.MCPTool value) => new ToolsItem5((global::tryAGI.OpenAI.MCPTool?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.MCPTool?(ToolsItem4 @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.MCPTool?(ToolsItem5 @this) => @this.MCPTool; /// /// /// - public ToolsItem4(global::tryAGI.OpenAI.MCPTool? value) + public ToolsItem5(global::tryAGI.OpenAI.MCPTool? value) { - Value2 = value; + MCPTool = value; } /// /// /// - public ToolsItem4( - global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1? value1, - global::tryAGI.OpenAI.MCPTool? value2 + public ToolsItem5( + global::tryAGI.OpenAI.RealtimeFunctionTool? realtimeFunctionTool, + global::tryAGI.OpenAI.MCPTool? mCPTool ) { - Value1 = value1; - Value2 = value2; + RealtimeFunctionTool = realtimeFunctionTool; + MCPTool = mCPTool; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + MCPTool as object ?? + RealtimeFunctionTool as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + RealtimeFunctionTool?.ToString() ?? + MCPTool?.ToString() ; /// @@ -113,15 +113,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2; + return IsRealtimeFunctionTool || IsMCPTool; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? realtimeFunctionTool = null, + global::System.Func? mCPTool = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsRealtimeFunctionTool && realtimeFunctionTool != null) { - return value1(Value1!); + return realtimeFunctionTool(RealtimeFunctionTool!); } - else if (IsValue2 && value2 != null) + else if (IsMCPTool && mCPTool != null) { - return value2(Value2!); + return mCPTool(MCPTool!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? realtimeFunctionTool = null, + global::System.Action? mCPTool = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsRealtimeFunctionTool) { - value1?.Invoke(Value1!); + realtimeFunctionTool?.Invoke(RealtimeFunctionTool!); } - else if (IsValue2) + else if (IsMCPTool) { - value2?.Invoke(Value2!); + mCPTool?.Invoke(MCPTool!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, - typeof(global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolVariant1), - Value2, + RealtimeFunctionTool, + typeof(global::tryAGI.OpenAI.RealtimeFunctionTool), + MCPTool, typeof(global::tryAGI.OpenAI.MCPTool), }; const int offset = unchecked((int)2166136261); @@ -188,26 +188,26 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(ToolsItem4 other) + public bool Equals(ToolsItem5 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RealtimeFunctionTool, other.RealtimeFunctionTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPTool, other.MCPTool) ; } /// /// /// - public static bool operator ==(ToolsItem4 obj1, ToolsItem4 obj2) + public static bool operator ==(ToolsItem5 obj1, ToolsItem5 obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(ToolsItem4 obj1, ToolsItem4 obj2) + public static bool operator !=(ToolsItem5 obj1, ToolsItem5 obj2) { return !(obj1 == obj2); } @@ -217,7 +217,7 @@ public bool Equals(ToolsItem4 other) /// public override bool Equals(object? obj) { - return obj is ToolsItem4 o && Equals(o); + return obj is ToolsItem5 o && Equals(o); } } } 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 e7eb82da..a32c711c 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 @@ -22,8 +22,8 @@ partial void ProcessCreateRealtimeClientSecretResponseContent( ref string content); /// - /// Create realtime session
- /// Create a Realtime session and client secret for either realtime or transcription. + /// Create client secret
+ /// Create a Realtime client secret with an associated session configuration. ///
/// /// The token to cancel the operation with @@ -167,11 +167,14 @@ partial void ProcessCreateRealtimeClientSecretResponseContent( } /// - /// Create realtime session
- /// Create a Realtime session and client secret for either realtime or transcription. + /// Create client secret
+ /// Create a Realtime client secret with an associated session configuration. ///
/// - /// Configuration for the ephemeral token expiration. + /// Configuration for the client secret expiration. Expiration refers to the time after which
+ /// a client secret will no longer be valid for creating sessions. The session itself may
+ /// continue after that time once started. A secret can be used to create multiple sessions
+ /// until it expires. /// /// /// Session configuration to use for the client secret. Choose either a realtime
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 d35187ac..dc4cee88 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 @@ -180,48 +180,55 @@ partial void ProcessCreateRealtimeSessionResponseContent( /// a usable ephemeral API token that can be used to authenticate browser clients
/// for the Realtime API. ///
- /// - /// Configuration for input and output audio. - /// /// - /// Configuration options for the generated client secret. + /// Ephemeral key returned by the API. + /// + /// + /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. /// - /// - /// Additional fields to include in server outputs.
- /// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. + /// + /// 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 and should be treated as rough guidance
+ /// rather than the representation understood by the model. /// /// /// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
/// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session. /// - /// + /// /// Maximum number of output tokens for a single assistant response,
/// inclusive of tool calls. Provide an integer between 1 and 4096 to
/// limit output tokens, or `inf` for the maximum available tokens for a
/// given model. Defaults to `inf`. /// - /// - /// The Realtime model used for this session. - /// - /// + /// /// The set of modalities the model can respond with. To disable audio,
/// set this to ["text"]. /// + /// + /// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. + /// /// /// Reference to a prompt template and its variables.
/// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). /// + /// + /// The speed of the model's spoken response. 1.0 is the default speed. 0.25 is
+ /// the minimum speed. 1.5 is the maximum speed. This value can only be changed
+ /// in between model turns, not while a response is in progress.
+ /// Default Value: 1 + /// /// - /// Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.
- /// Default Value: 0.8 + /// Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8. /// /// - /// How the model chooses tools. Provide one of the string modes or force a specific
- /// function/MCP tool.
- /// Default Value: auto + /// How the model chooses tools. Options are `auto`, `none`, `required`, or
+ /// specify a function. /// /// - /// Tools available to the model. + /// Tools (functions) available to the model. /// /// /// Configuration options for tracing. Set to null to disable tracing. Once
@@ -231,47 +238,55 @@ partial void ProcessCreateRealtimeSessionResponseContent( /// /// /// Controls how the realtime conversation is truncated prior to model inference.
- /// The default is `auto`. When set to `retention_ratio`, the server retains a
- /// fraction of the conversation tokens prior to the instructions. + /// The default is `auto`. + /// + /// + /// Configuration for turn detection. Can be set to `null` to turn off. Server
+ /// VAD means that the model will detect the start and end of speech based on
+ /// audio volume and respond at the end of user speech. /// - /// - /// The type of session to create. Always `realtime` for the Realtime API. + /// + /// Example: ash /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateRealtimeSessionAsync( - global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestAudio? audio = default, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? clientSecret = default, - global::System.Collections.Generic.IList? include = default, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret clientSecret, + string? inputAudioFormat = default, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? inputAudioTranscription = default, string? instructions = default, - global::tryAGI.OpenAI.AnyOf? maxOutputTokens = default, - global::System.Collections.Generic.IList? outputModalities = default, + global::tryAGI.OpenAI.AnyOf? maxResponseOutputTokens = default, + global::System.Collections.Generic.IList? modalities = default, + string? outputAudioFormat = default, global::tryAGI.OpenAI.Prompt2? prompt = default, + double? speed = default, double? temperature = default, - global::tryAGI.OpenAI.AnyOf? toolChoice = default, - global::System.Collections.Generic.IList? tools = default, + string? toolChoice = default, + global::System.Collections.Generic.IList? tools = default, global::tryAGI.OpenAI.AnyOf? tracing = default, global::tryAGI.OpenAI.RealtimeTruncation? truncation = default, - global::tryAGI.OpenAI.RealtimeSessionCreateRequestType type = default, + global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? turnDetection = default, + global::tryAGI.OpenAI.VoiceIdsShared? voice = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::tryAGI.OpenAI.RealtimeSessionCreateRequest { - Audio = audio, ClientSecret = clientSecret, - Include = include, + InputAudioFormat = inputAudioFormat, + InputAudioTranscription = inputAudioTranscription, Instructions = instructions, - MaxOutputTokens = maxOutputTokens, - Model = model, - OutputModalities = outputModalities, + MaxResponseOutputTokens = maxResponseOutputTokens, + Modalities = modalities, + OutputAudioFormat = outputAudioFormat, Prompt = prompt, + Speed = speed, Temperature = temperature, ToolChoice = toolChoice, Tools = tools, Tracing = tracing, Truncation = truncation, - Type = type, + TurnDetection = turnDetection, + Voice = voice, }; return await CreateRealtimeSessionAsync( 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 a0f7203c..fa25649a 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 @@ -182,7 +182,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( ///
/// /// The set of items to include in the transcription. Current available items are:
- /// - `item.input_audio_transcription.logprobs` + /// `item.input_audio_transcription.logprobs` /// /// /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
@@ -195,29 +195,18 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( /// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
/// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio. /// - /// - /// Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service. - /// - /// - /// ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).
- /// Example: gpt-4o-transcribe - /// + /// /// /// Configuration for turn detection. Can be set to `null` to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech. /// - /// - /// The type of session to create. Always `transcription` for transcription sessions. - /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateRealtimeTranscriptionSessionAsync( - global::tryAGI.OpenAI.AnyOf model, global::System.Collections.Generic.IList? include = default, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? inputAudioFormat = default, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? inputAudioNoiseReduction = default, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? inputAudioTranscription = default, + global::tryAGI.OpenAI.AudioTranscription? inputAudioTranscription = default, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? turnDetection = default, - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestType type = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest @@ -226,9 +215,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( InputAudioFormat = inputAudioFormat, InputAudioNoiseReduction = inputAudioNoiseReduction, InputAudioTranscription = inputAudioTranscription, - Model = model, TurnDetection = turnDetection, - Type = type, }; return await CreateRealtimeTranscriptionSessionAsync( diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index 3415ce53..4f0f723d 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -2192,7 +2192,7 @@ paths: x-oaiMeta: examples: request: - curl: "curl https://api.openai.com/v1/files \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -F purpose=\"fine-tune\" \\\n -F file=\"@mydata.jsonl\"\n -F expires_after[anchor]=\"created_at\"\n -F expires_after[seconds]=3600\n" + curl: "curl https://api.openai.com/v1/files \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -F purpose=\"fine-tune\" \\\n -F file=\"@mydata.jsonl\"\n -F expires_after[anchor]=\"created_at\"\n -F expires_after[seconds]=2592000\n" go: "package main\n\nimport (\n \"bytes\"\n \"context\"\n \"fmt\"\n \"io\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n fileObject, err := client.Files.New(context.TODO(), openai.FileNewParams{\n File: io.Reader(bytes.NewBuffer([]byte(\"some file contents\"))),\n Purpose: openai.FilePurposeAssistants,\n })\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", fileObject.ID)\n}\n" java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.files.FileCreateParams;\nimport com.openai.models.files.FileObject;\nimport com.openai.models.files.FilePurpose;\nimport java.io.ByteArrayInputStream;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n FileCreateParams params = FileCreateParams.builder()\n .file(ByteArrayInputStream(\"some content\".getBytes()))\n .purpose(FilePurpose.ASSISTANTS)\n .build();\n FileObject fileObject = client.files().create(params);\n }\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst fileObject = await client.files.create({\n file: fs.createReadStream('fine-tune.jsonl'),\n purpose: 'assistants',\n});\n\nconsole.log(fileObject.id);" @@ -5439,8 +5439,8 @@ paths: post: tags: - Realtime - summary: Create realtime session - description: "Create a Realtime session and client secret for either realtime or transcription.\n" + summary: Create client secret + description: "Create a Realtime client secret with an associated session configuration.\n" operationId: create-realtime-client-secret requestBody: description: Create a client secret with the given session configuration. @@ -5459,7 +5459,7 @@ paths: x-oaiMeta: examples: request: - curl: "curl -X POST https://api.openai.com/v1/realtime/client_secrets \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"expires_after\": { \"anchor\": \"created_at\", \"seconds\": 600 },\n \"session\": {\n \"type\": \"realtime\",\n \"model\": \"gpt-realtime\",\n \"instructions\": \"You are a friendly assistant.\"\n }\n }'\n" + curl: "curl -X POST https://api.openai.com/v1/realtime/client_secrets \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"expires_after\": {\n \"anchor\": \"created_at\",\n \"seconds\": 600\n },\n \"session\": {\n \"type\": \"realtime\",\n \"model\": \"gpt-realtime\",\n \"instructions\": \"You are a friendly assistant.\"\n }\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n \"github.com/openai/openai-go/realtime\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n clientSecret, err := client.Realtime.ClientSecrets.New(context.TODO(), realtime.ClientSecretNewParams{\n\n })\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", clientSecret.ExpiresAt)\n}\n" java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.realtime.clientsecrets.ClientSecretCreateParams;\nimport com.openai.models.realtime.clientsecrets.ClientSecretCreateResponse;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n ClientSecretCreateResponse clientSecret = client.realtime().clientSecrets().create();\n }\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst clientSecret = await client.realtime.clientSecrets.create();\n\nconsole.log(clientSecret.expires_at);" @@ -5467,8 +5467,8 @@ paths: ruby: "require \"openai\"\n\nopenai = OpenAI::Client.new(api_key: \"My API Key\")\n\nclient_secret = openai.realtime.client_secrets.create\n\nputs(client_secret)" response: "{\n \"value\": \"ek_68af296e8e408191a1120ab6383263c2\",\n \"expires_at\": 1756310470,\n \"session\": {\n \"type\": \"realtime\",\n \"object\": \"realtime.session\",\n \"id\": \"sess_C9CiUVUzUzYIssh3ELY1d\",\n \"model\": \"gpt-realtime\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"instructions\": \"You are a friendly assistant.\",\n \"tools\": [],\n \"tool_choice\": \"auto\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": null,\n \"truncation\": \"auto\",\n \"prompt\": null,\n \"expires_at\": 0,\n \"audio\": {\n \"input\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"transcription\": null,\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 \"idle_timeout_ms\": null,\n \"create_response\": true,\n \"interrupt_response\": true\n }\n },\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"alloy\",\n \"speed\": 1.0\n }\n },\n \"include\": null\n }\n}\n" group: realtime - name: Create realtime session - returns: The created client secret and the effective session object + name: Create client secret + returns: The created client secret and the effective session object. The client secret is a string that looks like `ek_1234`. /realtime/sessions: post: tags: @@ -5493,8 +5493,8 @@ paths: x-oaiMeta: examples: request: - curl: "curl -X POST https://api.openai.com/v1/realtime/sessions \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"gpt-4o-realtime-preview\",\n \"modalities\": [\"audio\", \"text\"],\n \"instructions\": \"You are a friendly assistant.\"\n }'\n" - response: "{\n \"id\": \"sess_001\",\n \"object\": \"realtime.session\",\n \"model\": \"gpt-4o-realtime-preview\",\n \"modalities\": [\"audio\", \"text\"],\n \"instructions\": \"You are a friendly assistant.\",\n \"voice\": \"alloy\",\n \"input_audio_format\": \"pcm16\",\n \"output_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"whisper-1\"\n },\n \"turn_detection\": null,\n \"tools\": [],\n \"tool_choice\": \"none\",\n \"temperature\": 0.7,\n \"max_response_output_tokens\": 200,\n \"speed\": 1.1,\n \"tracing\": \"auto\",\n \"client_secret\": {\n \"value\": \"ek_abc123\", \n \"expires_at\": 1234567890\n }\n}\n" + curl: "curl -X POST https://api.openai.com/v1/realtime/sessions \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"gpt-realtime\",\n \"modalities\": [\"audio\", \"text\"],\n \"instructions\": \"You are a friendly assistant.\"\n }'\n" + response: "{\n \"id\": \"sess_001\",\n \"object\": \"realtime.session\",\n \"model\": \"gpt-realtime-2025-08-25\",\n \"modalities\": [\"audio\", \"text\"],\n \"instructions\": \"You are a friendly assistant.\",\n \"voice\": \"alloy\",\n \"input_audio_format\": \"pcm16\",\n \"output_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"whisper-1\"\n },\n \"turn_detection\": null,\n \"tools\": [],\n \"tool_choice\": \"none\",\n \"temperature\": 0.7,\n \"max_response_output_tokens\": 200,\n \"speed\": 1.1,\n \"tracing\": \"auto\",\n \"client_secret\": {\n \"value\": \"ek_abc123\", \n \"expires_at\": 1234567890\n }\n}\n" group: realtime name: Create session returns: 'The created Realtime session object, plus an ephemeral key' @@ -7878,6 +7878,23 @@ components: type: string description: "The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, the only supported format is `json`.\n" default: json + AudioTranscription: + type: object + properties: + language: + type: string + description: "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n" + model: + enum: + - whisper-1 + - gpt-4o-transcribe-latest + - gpt-4o-mini-transcribe + - gpt-4o-transcribe + type: string + description: "The model to use for transcription. Current options are `whisper-1`, `gpt-4o-transcribe-latest`, `gpt-4o-mini-transcribe`, and `gpt-4o-transcribe`.\n" + prompt: + type: string + description: "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n" AuditLog: required: - id @@ -18830,6 +18847,12 @@ components: type: integer description: "The y-coordinate to move to.\n" description: "A mouse move action.\n" + NoiseReductionType: + enum: + - near_field + - far_field + type: string + description: "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n" OpenAIFile: title: OpenAIFile required: @@ -19634,30 +19657,14 @@ components: description: The G.711 A-law format. discriminator: propertyName: type - RealtimeClientEvent: - anyOf: - - $ref: '#/components/schemas/RealtimeClientEventConversationItemCreate' - - $ref: '#/components/schemas/RealtimeClientEventConversationItemDelete' - - $ref: '#/components/schemas/RealtimeClientEventConversationItemRetrieve' - - $ref: '#/components/schemas/RealtimeClientEventConversationItemTruncate' - - $ref: '#/components/schemas/RealtimeClientEventInputAudioBufferAppend' - - $ref: '#/components/schemas/RealtimeClientEventInputAudioBufferClear' - - $ref: '#/components/schemas/RealtimeClientEventOutputAudioBufferClear' - - $ref: '#/components/schemas/RealtimeClientEventInputAudioBufferCommit' - - $ref: '#/components/schemas/RealtimeClientEventResponseCancel' - - $ref: '#/components/schemas/RealtimeClientEventResponseCreate' - - $ref: '#/components/schemas/RealtimeClientEventSessionUpdate' - - $ref: '#/components/schemas/RealtimeClientEventTranscriptionSessionUpdate' - description: "A realtime client event.\n" - discriminator: - propertyName: type - RealtimeClientEventConversationItemCreate: + RealtimeBetaClientEventConversationItemCreate: required: - type - item type: object properties: event_id: + maxLength: 512 type: string description: Optional client-generated ID used to identify this event. item: @@ -19672,10 +19679,10 @@ components: x-stainless-const: true description: "Add a new Item to the Conversation's context, including messages, function \ncalls, and function call responses. This event can be used both to populate a \n\"history\" of the conversation and to add new items mid-stream, but has the \ncurrent limitation that it cannot populate assistant audio messages.\n\nIf successful, the server will respond with a `conversation.item.created` \nevent, otherwise an `error` event will be sent.\n" x-oaiMeta: - example: "{\n \"type\": \"conversation.item.create\",\n \"item\": {\n \"type\": \"message\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"hi\"\n }\n ]\n },\n \"event_id\": \"b904fba0-0ec4-40af-8bbb-f908a9b26793\",\n \"timestamp\": \"2:30:35 PM\"\n}\n" + example: "{\n \"type\": \"conversation.item.create\",\n \"item\": {\n \"type\": \"message\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"hi\"\n }\n ]\n },\n \"event_id\": \"b904fba0-0ec4-40af-8bbb-f908a9b26793\",\n}\n" group: realtime name: conversation.item.create - RealtimeClientEventConversationItemDelete: + RealtimeBetaClientEventConversationItemDelete: required: - type - item_id @@ -19697,7 +19704,7 @@ components: example: "{\n \"event_id\": \"event_901\",\n \"type\": \"conversation.item.delete\",\n \"item_id\": \"msg_003\"\n}\n" group: realtime name: conversation.item.delete - RealtimeClientEventConversationItemRetrieve: + RealtimeBetaClientEventConversationItemRetrieve: required: - type - item_id @@ -19719,7 +19726,7 @@ components: example: "{\n \"event_id\": \"event_901\",\n \"type\": \"conversation.item.retrieve\",\n \"item_id\": \"msg_003\"\n}\n" group: realtime name: conversation.item.retrieve - RealtimeClientEventConversationItemTruncate: + RealtimeBetaClientEventConversationItemTruncate: required: - type - item_id @@ -19749,7 +19756,7 @@ components: example: "{\n \"event_id\": \"event_678\",\n \"type\": \"conversation.item.truncate\",\n \"item_id\": \"msg_002\",\n \"content_index\": 0,\n \"audio_end_ms\": 1500\n}\n" group: realtime name: conversation.item.truncate - RealtimeClientEventInputAudioBufferAppend: + RealtimeBetaClientEventInputAudioBufferAppend: required: - type - audio @@ -19771,7 +19778,7 @@ components: example: "{\n \"event_id\": \"event_456\",\n \"type\": \"input_audio_buffer.append\",\n \"audio\": \"Base64EncodedAudioData\"\n}\n" group: realtime name: input_audio_buffer.append - RealtimeClientEventInputAudioBufferClear: + RealtimeBetaClientEventInputAudioBufferClear: required: - type type: object @@ -19789,7 +19796,7 @@ components: example: "{\n \"event_id\": \"event_012\",\n \"type\": \"input_audio_buffer.clear\"\n}\n" group: realtime name: input_audio_buffer.clear - RealtimeClientEventInputAudioBufferCommit: + RealtimeBetaClientEventInputAudioBufferCommit: required: - type type: object @@ -19807,7 +19814,7 @@ components: example: "{\n \"event_id\": \"event_789\",\n \"type\": \"input_audio_buffer.commit\"\n}\n" group: realtime name: input_audio_buffer.commit - RealtimeClientEventOutputAudioBufferClear: + RealtimeBetaClientEventOutputAudioBufferClear: required: - type type: object @@ -19825,7 +19832,7 @@ components: example: "{\n \"event_id\": \"optional_client_event_id\",\n \"type\": \"output_audio_buffer.clear\"\n}\n" group: realtime name: output_audio_buffer.clear - RealtimeClientEventResponseCancel: + RealtimeBetaClientEventResponseCancel: required: - type type: object @@ -19846,7 +19853,7 @@ components: example: "{\n \"event_id\": \"event_567\",\n \"type\": \"response.cancel\"\n}\n" group: realtime name: response.cancel - RealtimeClientEventResponseCreate: + RealtimeBetaClientEventResponseCreate: required: - type type: object @@ -19855,18 +19862,18 @@ components: type: string description: Optional client-generated ID used to identify this event. response: - $ref: '#/components/schemas/RealtimeResponseCreateParams' + $ref: '#/components/schemas/RealtimeBetaResponseCreateParams' type: enum: - response.create description: 'The event type, must be `response.create`.' x-stainless-const: true - description: "This event instructs the server to create a Response, which means triggering \nmodel inference. When in Server VAD mode, the server will create Responses \nautomatically.\n\nA Response will include at least one Item, and may have two, in which case \nthe second will be a function call. These Items will be appended to the \nconversation history.\n\nThe server will respond with a `response.created` event, events for Items \nand content created, and finally a `response.done` event to indicate the \nResponse is complete.\n\nThe `response.create` event includes inference configuration like \n`instructions`, and `temperature`. These fields will override the Session's \nconfiguration for this Response only.\n" + description: "This event instructs the server to create a Response, which means triggering \nmodel inference. When in Server VAD mode, the server will create Responses \nautomatically.\n\nA Response will include at least one Item, and may have two, in which case \nthe second will be a function call. These Items will be appended to the \nconversation history.\n\nThe server will respond with a `response.created` event, events for Items \nand content created, and finally a `response.done` event to indicate the \nResponse is complete.\n\nThe `response.create` event can optionally include inference configuration like \n`instructions`, and `temperature`. These fields will override the Session's \nconfiguration for this Response only.\n\nResponses can be created out-of-band of the default Conversation, meaning that they can\nhave arbitrary input, and it's possible to disable writing the output to the Conversation.\nOnly one Response can write to the default Conversation at a time, but otherwise multiple\nResponses can be created in parallel.\n\nClients can set `conversation` to `none` to create a Response that does not write to the default\nConversation. Arbitrary input can be provided with the `input` field, which is an array accepting\nraw Items and references to existing Items.\n" x-oaiMeta: - example: "{\n \"type\": \"response.create\",\n \"event_id\": \"xxx\",\n \"timestamp\": \"2:30:35 PM\"\n}\n" + example: "// Trigger a response with the default Conversation and no special parameters\n{\n \"type\": \"response.create\",\n}\n\n// Trigger an out-of-band response that does not write to the default Conversation\n{\n \"type\": \"response.create\",\n \"response\": {\n \"instructions\": \"Provide a concise answer.\",\n \"tools\": [], // clear any session tools\n \"conversation\": \"none\",\n \"output_modalities\": [\"text\"],\n \"input\": [\n {\n \"type\": \"item_reference\",\n \"id\": \"item_12345\",\n },\n {\n \"type\": \"message\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"Summarize the above message in one sentence.\"\n }\n ]\n }\n ],\n }\n}\n" group: realtime name: response.create - RealtimeClientEventSessionUpdate: + RealtimeBetaClientEventSessionUpdate: required: - type - session @@ -19887,7 +19894,7 @@ components: example: "{\n \"type\": \"session.update\",\n \"session\": {\n \"type\": \"realtime\",\n \"tools\": [\n {\n \"type\": \"function\",\n \"name\": \"display_color_palette\",\n \"description\": \"\\nCall this function when a user asks for a color palette.\\n\",\n \"parameters\": {\n \"type\": \"object\",\n \"strict\": true,\n \"properties\": {\n \"theme\": {\n \"type\": \"string\",\n \"description\": \"Description of the theme for the color scheme.\"\n },\n \"colors\": {\n \"type\": \"array\",\n \"description\": \"Array of five hex color codes based on the theme.\",\n \"items\": {\n \"type\": \"string\",\n \"description\": \"Hex color code\"\n }\n }\n },\n \"required\": [\n \"theme\",\n \"colors\"\n ]\n }\n }\n ],\n \"tool_choice\": \"auto\"\n },\n \"event_id\": \"5fc543c4-f59c-420f-8fb9-68c45d1546a7\",\n \"timestamp\": \"2:30:32 PM\"\n}\n" group: realtime name: session.update - RealtimeClientEventTranscriptionSessionUpdate: + RealtimeBetaClientEventTranscriptionSessionUpdate: required: - type - session @@ -19908,90 +19915,1927 @@ components: example: "{\n \"type\": \"transcription_session.update\",\n \"session\": {\n \"input_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"prompt\": \"\",\n \"language\": \"\"\n },\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 500,\n \"create_response\": true,\n },\n \"input_audio_noise_reduction\": {\n \"type\": \"near_field\"\n },\n \"include\": [\n \"item.input_audio_transcription.logprobs\",\n ]\n }\n}\n" group: realtime name: transcription_session.update - RealtimeConnectParams: - required: - - model + RealtimeBetaResponse: type: object properties: - model: + conversation_id: type: string - RealtimeConversationItem: - type: object - properties: + description: "Which conversation the response is added to, determined by the `conversation`\nfield in the `response.create` event. If `auto`, the response will be added to\nthe default conversation and the value of `conversation_id` will be an id like\n`conv_1234`. If `none`, the response will not be added to any conversation and\nthe value of `conversation_id` will be `null`. If responses are being triggered\nby server VAD, the response will be added to the default conversation, thus\nthe `conversation_id` will be an id like `conv_1234`.\n" id: type: string - description: The unique ID of the item. - example: msg_003 + description: The unique ID of the response. + max_output_tokens: + anyOf: + - type: integer + - enum: + - inf + type: string + x-stainless-const: true + description: "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls, that was used in this response.\n" + metadata: + $ref: '#/components/schemas/Metadata' + modalities: + type: array + items: + enum: + - text + - audio + type: string + description: "The set of modalities the model used to respond. If there are multiple modalities,\nthe model will pick one, for example if `modalities` is `[\"text\", \"audio\"]`, the model\ncould be responding in either text or audio.\n" object: enum: - - realtime.item - type: string - description: 'The object type, must be "realtime.item".' - example: realtime.item - type: + - realtime.response + description: 'The object type, must be `realtime.response`.' + x-stainless-const: true + output: + type: array + items: + $ref: '#/components/schemas/RealtimeConversationItem' + description: The list of output items generated by the response. + output_audio_format: enum: - - message - - function_call - - function_call_output + - pcm16 + - g711_ulaw + - g711_alaw type: string - description: The type of the item. - example: message + description: "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" status: enum: - completed - - in_progress + - cancelled + - failed - incomplete + - in_progress type: string - description: The status of the item. - example: completed - role: + description: "The final status of the response (`completed`, `cancelled`, `failed`, or \n`incomplete`, `in_progress`).\n" + status_details: + type: object + properties: + error: + type: object + properties: + code: + type: string + description: 'Error code, if any.' + type: + type: string + description: The type of error. + description: "A description of the error that caused the response to fail, \npopulated when the `status` is `failed`.\n" + reason: + enum: + - turn_detected + - client_cancelled + - max_output_tokens + - content_filter + type: string + description: "The reason the Response did not complete. For a `cancelled` Response, \none of `turn_detected` (the server VAD detected a new start of speech) \nor `client_cancelled` (the client sent a cancel event). For an \n`incomplete` Response, one of `max_output_tokens` or `content_filter` \n(the server-side safety filter activated and cut off the response).\n" + type: + enum: + - completed + - cancelled + - incomplete + - failed + type: string + description: "The type of error that caused the response to fail, corresponding \nwith the `status` field (`completed`, `cancelled`, `incomplete`, \n`failed`).\n" + description: Additional details about the status. + temperature: + type: number + description: "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n" + usage: + type: object + properties: + input_token_details: + type: object + properties: + audio_tokens: + type: integer + description: The number of audio tokens used as input for the Response. + cached_tokens: + type: integer + description: The number of cached tokens used as input for the Response. + cached_tokens_details: + type: object + properties: + audio_tokens: + type: integer + description: The number of cached audio tokens used as input for the Response. + image_tokens: + type: integer + description: The number of cached image tokens used as input for the Response. + text_tokens: + type: integer + description: The number of cached text tokens used as input for the Response. + description: Details about the cached tokens used as input for the Response. + image_tokens: + type: integer + description: The number of image tokens used as input for the Response. + text_tokens: + type: integer + description: The number of text tokens used as input for the Response. + description: Details about the input tokens used in the Response. + input_tokens: + type: integer + description: "The number of input tokens used in the Response, including text and \naudio tokens.\n" + output_token_details: + type: object + properties: + audio_tokens: + type: integer + description: The number of audio tokens used in the Response. + text_tokens: + type: integer + description: The number of text tokens used in the Response. + description: Details about the output tokens used in the Response. + output_tokens: + type: integer + description: "The number of output tokens sent in the Response, including text and \naudio tokens.\n" + total_tokens: + type: integer + description: "The total number of tokens in the Response including input and output \ntext and audio tokens.\n" + description: "Usage statistics for the Response, this will correspond to billing. A \nRealtime API session will maintain a conversation context and append new \nItems to the Conversation, thus output from previous turns (text and \naudio tokens) will become the input for later turns.\n" + voice: + $ref: '#/components/schemas/VoiceIdsShared' + description: The response resource. + RealtimeBetaResponseCreateParams: + type: object + properties: + conversation: + anyOf: + - type: string + - enum: + - auto + - none + type: string + default: auto + description: "Controls which conversation the response is added to. Currently supports\n`auto` and `none`, with `auto` as the default value. The `auto` value\nmeans that the contents of the response will be added to the default\nconversation. Set this to `none` to create an out-of-band response which \nwill not add items to default conversation.\n" + input: + type: array + items: + $ref: '#/components/schemas/RealtimeConversationItem' + description: "Input items to include in the prompt for the model. Using this field\ncreates a new context for this Response instead of using the default\nconversation. An empty array `[]` will clear the context for this Response.\nNote that this can include references to items from the default conversation.\n" + instructions: + type: string + description: "The default system instructions (i.e. system message) prepended to model \ncalls. This field allows the client to guide the model on desired \nresponses. The model can be instructed on response content and format, \n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good \nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion \ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed \nto be followed by the model, but they provide guidance to the model on the \ndesired behavior.\n\nNote that the server sets default instructions which will be used if this \nfield is not set and are visible in the `session.created` event at the \nstart of the session.\n" + max_output_tokens: + anyOf: + - type: integer + - enum: + - inf + type: string + x-stainless-const: true + description: "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n" + metadata: + $ref: '#/components/schemas/Metadata' + modalities: + type: array + items: + enum: + - text + - audio + type: string + description: "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n" + output_audio_format: enum: - - user - - assistant - - system + - pcm16 + - g711_ulaw + - g711_alaw type: string - description: The role of the message sender. - example: user - content: + description: "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" + prompt: + $ref: '#/components/schemas/Prompt' + temperature: + type: number + description: "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n" + tool_choice: + anyOf: + - $ref: '#/components/schemas/ToolChoiceOptions' + - $ref: '#/components/schemas/ToolChoiceFunction' + - $ref: '#/components/schemas/ToolChoiceMCP' + description: "How the model chooses tools. Provide one of the string modes or force a specific\nfunction/MCP tool.\n" + default: auto + tools: type: array items: type: object properties: - type: - enum: - - input_text - - input_audio - - text - - audio - type: string - description: The content type. - example: input_text - text: - type: string - description: The text content (for text or input_text items). - example: 'Hello, how are you?' - audio: - type: string - description: Base64-encoded audio bytes (for audio or input_audio items). - transcript: - type: string - description: The transcript of the audio (for audio items). - call_id: + description: type: string - description: The ID of the function call (for function_call items). + description: "The description of the function, including guidance on when and how \nto call it, and guidance about what to tell the user when calling \n(if anything).\n" name: type: string - description: The name of the function being called (for function_call items). - arguments: - type: string - description: The arguments of the function call (for function_call items). - output: + description: The name of the function. + parameters: + type: object + description: Parameters of the function in JSON Schema. + type: + enum: + - function type: string - description: The output of the function call (for function_call_output items). - description: The content of the message. - description: "A realtime Item is of three types: message, function_call, or function_call_output.\n\nA message item can contain text or audio.\nA function_call item indicates a model's desire to call a function, which is the only tool supported for now\nA function_call_output item indicates a function response.\nThe client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete.\n" - RealtimeConversationItemFunctionCall: - title: Realtime function call item + description: 'The type of the tool, i.e. `function`.' + x-stainless-const: true + description: Tools (functions) available to the model. + voice: + $ref: '#/components/schemas/VoiceIdsShared' + description: Create a new Realtime response with these parameters + RealtimeBetaServerEventConversationItemCreated: + required: + - event_id + - type + - item + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item: + $ref: '#/components/schemas/RealtimeConversationItem' + previous_item_id: + type: string + description: "The ID of the preceding item in the Conversation context, allows the \nclient to understand the order of the conversation. Can be `null` if the \nitem has no predecessor.\n" + nullable: true + type: + enum: + - conversation.item.created + description: 'The event type, must be `conversation.item.created`.' + x-stainless-const: true + description: "Returned when a conversation item is created. There are several scenarios that produce this event:\n - The server is generating a Response, which if successful will produce \n either one or two Items, which will be of type `message` \n (role `assistant`) or type `function_call`.\n - The input audio buffer has been committed, either by the client or the \n server (in `server_vad` mode). The server will take the content of the \n input audio buffer and add it to a new user message Item.\n - The client has sent a `conversation.item.create` event to add a new Item \n to the Conversation.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_1920\",\n \"type\": \"conversation.item.created\",\n \"previous_item_id\": \"msg_002\",\n \"item\": {\n \"id\": \"msg_003\",\n \"object\": \"realtime.item\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"user\",\n \"content\": []\n }\n}\n" + group: realtime + name: conversation.item.created + RealtimeBetaServerEventConversationItemDeleted: + required: + - event_id + - type + - item_id + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item that was deleted. + type: + enum: + - conversation.item.deleted + description: 'The event type, must be `conversation.item.deleted`.' + x-stainless-const: true + description: "Returned when an item in the conversation is deleted by the client with a \n`conversation.item.delete` event. This event is used to synchronize the \nserver's understanding of the conversation history with the client's view.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_2728\",\n \"type\": \"conversation.item.deleted\",\n \"item_id\": \"msg_005\"\n}\n" + group: realtime + name: conversation.item.deleted + RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted: + required: + - event_id + - type + - item_id + - content_index + - transcript + - usage + type: object + properties: + content_index: + type: integer + description: The index of the content part containing the audio. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the user message item containing the audio. + logprobs: + type: array + items: + $ref: '#/components/schemas/LogProbProperties' + description: The log probabilities of the transcription. + nullable: true + transcript: + type: string + description: The transcribed text. + type: + enum: + - conversation.item.input_audio_transcription.completed + type: string + description: "The event type, must be\n`conversation.item.input_audio_transcription.completed`.\n" + x-stainless-const: true + usage: + type: object + anyOf: + - $ref: '#/components/schemas/TranscriptTextUsageTokens' + - $ref: '#/components/schemas/TranscriptTextUsageDuration' + description: Usage statistics for the transcription. + description: "This event is the output of audio transcription for user audio written to the\nuser audio buffer. Transcription begins when the input audio buffer is\ncommitted by the client or server (in `server_vad` mode). Transcription runs\nasynchronously with Response creation, so this event may come before or after\nthe Response events.\n\nRealtime API models accept audio natively, and thus input transcription is a\nseparate process run on a separate ASR (Automatic Speech Recognition) model.\nThe transcript may diverge somewhat from the model's interpretation, and\nshould be treated as a rough guide.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_2122\",\n \"type\": \"conversation.item.input_audio_transcription.completed\",\n \"item_id\": \"msg_003\",\n \"content_index\": 0,\n \"transcript\": \"Hello, how are you?\",\n \"usage\": {\n \"type\": \"tokens\",\n \"total_tokens\": 48,\n \"input_tokens\": 38,\n \"input_token_details\": {\n \"text_tokens\": 10,\n \"audio_tokens\": 28,\n },\n \"output_tokens\": 10,\n }\n}\n" + group: realtime + name: conversation.item.input_audio_transcription.completed + RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta: + required: + - event_id + - type + - item_id + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + delta: + type: string + description: The text delta. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item. + logprobs: + type: array + items: + $ref: '#/components/schemas/LogProbProperties' + description: The log probabilities of the transcription. + nullable: true + type: + enum: + - conversation.item.input_audio_transcription.delta + description: 'The event type, must be `conversation.item.input_audio_transcription.delta`.' + x-stainless-const: true + description: "Returned when the text value of an input audio transcription content part is updated.\n" + x-oaiMeta: + example: "{\n \"type\": \"conversation.item.input_audio_transcription.delta\",\n \"event_id\": \"event_001\",\n \"item_id\": \"item_001\",\n \"content_index\": 0,\n \"delta\": \"Hello\"\n}\n" + group: realtime + name: conversation.item.input_audio_transcription.delta + RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed: + required: + - event_id + - type + - item_id + - content_index + - error + type: object + properties: + content_index: + type: integer + description: The index of the content part containing the audio. + error: + type: object + properties: + code: + type: string + description: 'Error code, if any.' + message: + type: string + description: A human-readable error message. + param: + type: string + description: 'Parameter related to the error, if any.' + type: + type: string + description: The type of error. + description: Details of the transcription error. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the user message item. + type: + enum: + - conversation.item.input_audio_transcription.failed + type: string + description: "The event type, must be\n`conversation.item.input_audio_transcription.failed`.\n" + x-stainless-const: true + description: "Returned when input audio transcription is configured, and a transcription \nrequest for a user message failed. These events are separate from other \n`error` events so that the client can identify the related Item.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_2324\",\n \"type\": \"conversation.item.input_audio_transcription.failed\",\n \"item_id\": \"msg_003\",\n \"content_index\": 0,\n \"error\": {\n \"type\": \"transcription_error\",\n \"code\": \"audio_unintelligible\",\n \"message\": \"The audio could not be transcribed.\",\n \"param\": null\n }\n}\n" + group: realtime + name: conversation.item.input_audio_transcription.failed + RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment: + required: + - event_id + - type + - item_id + - content_index + - text + - id + - speaker + - start + - end + type: object + properties: + content_index: + type: integer + description: The index of the input audio content part within the item. + end: + type: number + description: End time of the segment in seconds. + format: float + event_id: + type: string + description: The unique ID of the server event. + id: + type: string + description: The segment identifier. + item_id: + type: string + description: The ID of the item containing the input audio content. + speaker: + type: string + description: The detected speaker label for this segment. + start: + type: number + description: Start time of the segment in seconds. + format: float + text: + type: string + description: The text for this segment. + type: + enum: + - conversation.item.input_audio_transcription.segment + description: 'The event type, must be `conversation.item.input_audio_transcription.segment`.' + x-stainless-const: true + description: Returned when an input audio transcription segment is identified for an item. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6501\",\n \"type\": \"conversation.item.input_audio_transcription.segment\",\n \"item_id\": \"msg_011\",\n \"content_index\": 0,\n \"text\": \"hello\",\n \"id\": \"seg_0001\",\n \"speaker\": \"spk_1\",\n \"start\": 0.0,\n \"end\": 0.4\n}\n" + group: realtime + name: conversation.item.input_audio_transcription.segment + RealtimeBetaServerEventConversationItemRetrieved: + required: + - event_id + - type + - item + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item: + $ref: '#/components/schemas/RealtimeConversationItem' + type: + enum: + - conversation.item.retrieved + description: 'The event type, must be `conversation.item.retrieved`.' + x-stainless-const: true + description: "Returned when a conversation item is retrieved with `conversation.item.retrieve`.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_1920\",\n \"type\": \"conversation.item.created\",\n \"previous_item_id\": \"msg_002\",\n \"item\": {\n \"id\": \"msg_003\",\n \"object\": \"realtime.item\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_audio\",\n \"transcript\": \"hello how are you\",\n \"audio\": \"base64encodedaudio==\"\n }\n ]\n }\n}\n" + group: realtime + name: conversation.item.retrieved + RealtimeBetaServerEventConversationItemTruncated: + required: + - event_id + - type + - item_id + - content_index + - audio_end_ms + type: object + properties: + audio_end_ms: + type: integer + description: "The duration up to which the audio was truncated, in milliseconds.\n" + content_index: + type: integer + description: The index of the content part that was truncated. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the assistant message item that was truncated. + type: + enum: + - conversation.item.truncated + description: 'The event type, must be `conversation.item.truncated`.' + x-stainless-const: true + description: "Returned when an earlier assistant audio message item is truncated by the \nclient with a `conversation.item.truncate` event. This event is used to \nsynchronize the server's understanding of the audio with the client's playback.\n\nThis action will truncate the audio and remove the server-side text transcript \nto ensure there is no text in the context that hasn't been heard by the user.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_2526\",\n \"type\": \"conversation.item.truncated\",\n \"item_id\": \"msg_004\",\n \"content_index\": 0,\n \"audio_end_ms\": 1500\n}\n" + group: realtime + name: conversation.item.truncated + RealtimeBetaServerEventError: + required: + - event_id + - type + - error + type: object + properties: + error: + required: + - type + - message + type: object + properties: + code: + type: string + description: 'Error code, if any.' + nullable: true + event_id: + type: string + description: "The event_id of the client event that caused the error, if applicable.\n" + nullable: true + message: + type: string + description: A human-readable error message. + param: + type: string + description: 'Parameter related to the error, if any.' + nullable: true + type: + type: string + description: "The type of error (e.g., \"invalid_request_error\", \"server_error\").\n" + description: Details of the error. + event_id: + type: string + description: The unique ID of the server event. + type: + enum: + - error + description: 'The event type, must be `error`.' + x-stainless-const: true + description: "Returned when an error occurs, which could be a client problem or a server \nproblem. Most errors are recoverable and the session will stay open, we \nrecommend to implementors to monitor and log error messages by default.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_890\",\n \"type\": \"error\",\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"code\": \"invalid_event\",\n \"message\": \"The 'type' field is missing.\",\n \"param\": null,\n \"event_id\": \"event_567\"\n }\n}\n" + group: realtime + name: error + RealtimeBetaServerEventInputAudioBufferCleared: + required: + - event_id + - type + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + type: + enum: + - input_audio_buffer.cleared + description: 'The event type, must be `input_audio_buffer.cleared`.' + x-stainless-const: true + description: "Returned when the input audio buffer is cleared by the client with a \n`input_audio_buffer.clear` event.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_1314\",\n \"type\": \"input_audio_buffer.cleared\"\n}\n" + group: realtime + name: input_audio_buffer.cleared + RealtimeBetaServerEventInputAudioBufferCommitted: + required: + - event_id + - type + - item_id + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the user message item that will be created. + previous_item_id: + type: string + description: "The ID of the preceding item after which the new item will be inserted.\nCan be `null` if the item has no predecessor.\n" + nullable: true + type: + enum: + - input_audio_buffer.committed + description: 'The event type, must be `input_audio_buffer.committed`.' + x-stainless-const: true + description: "Returned when an input audio buffer is committed, either by the client or \nautomatically in server VAD mode. The `item_id` property is the ID of the user\nmessage item that will be created, thus a `conversation.item.created` event \nwill also be sent to the client.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_1121\",\n \"type\": \"input_audio_buffer.committed\",\n \"previous_item_id\": \"msg_001\",\n \"item_id\": \"msg_002\"\n}\n" + group: realtime + name: input_audio_buffer.committed + RealtimeBetaServerEventInputAudioBufferSpeechStarted: + required: + - event_id + - type + - audio_start_ms + - item_id + type: object + properties: + audio_start_ms: + type: integer + description: "Milliseconds from the start of all audio written to the buffer during the \nsession when speech was first detected. This will correspond to the \nbeginning of audio sent to the model, and thus includes the \n`prefix_padding_ms` configured in the Session.\n" + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: "The ID of the user message item that will be created when speech stops.\n" + type: + enum: + - input_audio_buffer.speech_started + description: 'The event type, must be `input_audio_buffer.speech_started`.' + x-stainless-const: true + description: "Sent by the server when in `server_vad` mode to indicate that speech has been \ndetected in the audio buffer. This can happen any time audio is added to the \nbuffer (unless speech is already detected). The client may want to use this \nevent to interrupt audio playback or provide visual feedback to the user. \n\nThe client should expect to receive a `input_audio_buffer.speech_stopped` event \nwhen speech stops. The `item_id` property is the ID of the user message item \nthat will be created when speech stops and will also be included in the \n`input_audio_buffer.speech_stopped` event (unless the client manually commits \nthe audio buffer during VAD activation).\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_1516\",\n \"type\": \"input_audio_buffer.speech_started\",\n \"audio_start_ms\": 1000,\n \"item_id\": \"msg_003\"\n}\n" + group: realtime + name: input_audio_buffer.speech_started + RealtimeBetaServerEventInputAudioBufferSpeechStopped: + required: + - event_id + - type + - audio_end_ms + - item_id + type: object + properties: + audio_end_ms: + type: integer + description: "Milliseconds since the session started when speech stopped. This will \ncorrespond to the end of audio sent to the model, and thus includes the \n`min_silence_duration_ms` configured in the Session.\n" + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the user message item that will be created. + type: + enum: + - input_audio_buffer.speech_stopped + description: 'The event type, must be `input_audio_buffer.speech_stopped`.' + x-stainless-const: true + description: "Returned in `server_vad` mode when the server detects the end of speech in \nthe audio buffer. The server will also send an `conversation.item.created` \nevent with the user message item that is created from the audio buffer.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_1718\",\n \"type\": \"input_audio_buffer.speech_stopped\",\n \"audio_end_ms\": 2000,\n \"item_id\": \"msg_003\"\n}\n" + group: realtime + name: input_audio_buffer.speech_stopped + RealtimeBetaServerEventInputAudioBufferTimeoutTriggered: + required: + - event_id + - type + - audio_start_ms + - audio_end_ms + - item_id + type: object + properties: + audio_end_ms: + type: integer + description: Millisecond offset where speech ended within the buffered audio. + audio_start_ms: + type: integer + description: Millisecond offset where speech started within the buffered audio. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item associated with this segment. + type: + enum: + - input_audio_buffer.timeout_triggered + description: 'The event type, must be `input_audio_buffer.timeout_triggered`.' + x-stainless-const: true + description: "Returned when the server VAD timeout is triggered for the input audio buffer.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_6401\",\n \"type\": \"input_audio_buffer.timeout_triggered\",\n \"audio_start_ms\": 1200,\n \"audio_end_ms\": 2150,\n \"item_id\": \"msg_010\"\n}\n" + group: realtime + name: input_audio_buffer.timeout_triggered + RealtimeBetaServerEventMCPListToolsCompleted: + required: + - event_id + - type + - item_id + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the MCP list tools item. + type: + enum: + - mcp_list_tools.completed + description: 'The event type, must be `mcp_list_tools.completed`.' + x-stainless-const: true + description: Returned when listing MCP tools has completed for an item. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6102\",\n \"type\": \"mcp_list_tools.completed\",\n \"item_id\": \"mcp_list_tools_001\"\n}\n" + group: realtime + name: mcp_list_tools.completed + RealtimeBetaServerEventMCPListToolsFailed: + required: + - event_id + - type + - item_id + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the MCP list tools item. + type: + enum: + - mcp_list_tools.failed + description: 'The event type, must be `mcp_list_tools.failed`.' + x-stainless-const: true + description: Returned when listing MCP tools has failed for an item. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6103\",\n \"type\": \"mcp_list_tools.failed\",\n \"item_id\": \"mcp_list_tools_001\"\n}\n" + group: realtime + name: mcp_list_tools.failed + RealtimeBetaServerEventMCPListToolsInProgress: + required: + - event_id + - type + - item_id + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the MCP list tools item. + type: + enum: + - mcp_list_tools.in_progress + description: 'The event type, must be `mcp_list_tools.in_progress`.' + x-stainless-const: true + description: Returned when listing MCP tools is in progress for an item. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6101\",\n \"type\": \"mcp_list_tools.in_progress\",\n \"item_id\": \"mcp_list_tools_001\"\n}\n" + group: realtime + name: mcp_list_tools.in_progress + RealtimeBetaServerEventRateLimitsUpdated: + required: + - event_id + - type + - rate_limits + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + rate_limits: + type: array + items: + type: object + properties: + limit: + type: integer + description: The maximum allowed value for the rate limit. + name: + enum: + - requests + - tokens + type: string + description: "The name of the rate limit (`requests`, `tokens`).\n" + remaining: + type: integer + description: The remaining value before the limit is reached. + reset_seconds: + type: number + description: Seconds until the rate limit resets. + description: List of rate limit information. + type: + enum: + - rate_limits.updated + description: 'The event type, must be `rate_limits.updated`.' + x-stainless-const: true + description: "Emitted at the beginning of a Response to indicate the updated rate limits. \nWhen a Response is created some tokens will be \"reserved\" for the output \ntokens, the rate limits shown here reflect that reservation, which is then \nadjusted accordingly once the Response is completed.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_5758\",\n \"type\": \"rate_limits.updated\",\n \"rate_limits\": [\n {\n \"name\": \"requests\",\n \"limit\": 1000,\n \"remaining\": 999,\n \"reset_seconds\": 60\n },\n {\n \"name\": \"tokens\",\n \"limit\": 50000,\n \"remaining\": 49950,\n \"reset_seconds\": 60\n }\n ]\n}\n" + group: realtime + name: rate_limits.updated + RealtimeBetaServerEventResponseAudioDelta: + required: + - event_id + - type + - response_id + - item_id + - output_index + - content_index + - delta + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + delta: + type: string + description: Base64-encoded audio data delta. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.output_audio.delta + description: 'The event type, must be `response.output_audio.delta`.' + x-stainless-const: true + description: Returned when the model-generated audio is updated. + x-oaiMeta: + example: "{\n \"event_id\": \"event_4950\",\n \"type\": \"response.output_audio.delta\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"msg_008\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"delta\": \"Base64EncodedAudioDelta\"\n}\n" + group: realtime + name: response.output_audio.delta + RealtimeBetaServerEventResponseAudioDone: + required: + - event_id + - type + - response_id + - item_id + - output_index + - content_index + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.output_audio.done + description: 'The event type, must be `response.output_audio.done`.' + x-stainless-const: true + description: "Returned when the model-generated audio is done. Also emitted when a Response\nis interrupted, incomplete, or cancelled.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_5152\",\n \"type\": \"response.output_audio.done\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"msg_008\",\n \"output_index\": 0,\n \"content_index\": 0\n}\n" + group: realtime + name: response.output_audio.done + RealtimeBetaServerEventResponseAudioTranscriptDelta: + required: + - event_id + - type + - response_id + - item_id + - output_index + - content_index + - delta + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + delta: + type: string + description: The transcript delta. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.output_audio_transcript.delta + description: 'The event type, must be `response.output_audio_transcript.delta`.' + x-stainless-const: true + description: "Returned when the model-generated transcription of audio output is updated.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_4546\",\n \"type\": \"response.output_audio_transcript.delta\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"msg_008\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"delta\": \"Hello, how can I a\"\n}\n" + group: realtime + name: response.output_audio_transcript.delta + RealtimeBetaServerEventResponseAudioTranscriptDone: + required: + - event_id + - type + - response_id + - item_id + - output_index + - content_index + - transcript + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + transcript: + type: string + description: The final transcript of the audio. + type: + enum: + - response.output_audio_transcript.done + description: 'The event type, must be `response.output_audio_transcript.done`.' + x-stainless-const: true + description: "Returned when the model-generated transcription of audio output is done\nstreaming. Also emitted when a Response is interrupted, incomplete, or\ncancelled.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_4748\",\n \"type\": \"response.output_audio_transcript.done\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"msg_008\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"transcript\": \"Hello, how can I assist you today?\"\n}\n" + group: realtime + name: response.output_audio_transcript.done + RealtimeBetaServerEventResponseContentPartAdded: + required: + - event_id + - type + - response_id + - item_id + - output_index + - content_index + - part + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item to which the content part was added. + output_index: + type: integer + description: The index of the output item in the response. + part: + type: object + properties: + audio: + type: string + description: Base64-encoded audio data (if type is "audio"). + text: + type: string + description: The text content (if type is "text"). + transcript: + type: string + description: The transcript of the audio (if type is "audio"). + type: + enum: + - text + - audio + type: string + description: 'The content type ("text", "audio").' + description: The content part that was added. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.content_part.added + description: 'The event type, must be `response.content_part.added`.' + x-stainless-const: true + description: "Returned when a new content part is added to an assistant message item during\nresponse generation.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_3738\",\n \"type\": \"response.content_part.added\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"msg_007\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"part\": {\n \"type\": \"text\",\n \"text\": \"\"\n }\n}\n" + group: realtime + name: response.content_part.added + RealtimeBetaServerEventResponseContentPartDone: + required: + - event_id + - type + - response_id + - item_id + - output_index + - content_index + - part + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item. + output_index: + type: integer + description: The index of the output item in the response. + part: + type: object + properties: + audio: + type: string + description: Base64-encoded audio data (if type is "audio"). + text: + type: string + description: The text content (if type is "text"). + transcript: + type: string + description: The transcript of the audio (if type is "audio"). + type: + enum: + - text + - audio + type: string + description: 'The content type ("text", "audio").' + description: The content part that is done. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.content_part.done + description: 'The event type, must be `response.content_part.done`.' + x-stainless-const: true + description: "Returned when a content part is done streaming in an assistant message item.\nAlso emitted when a Response is interrupted, incomplete, or cancelled.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_3940\",\n \"type\": \"response.content_part.done\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"msg_007\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"part\": {\n \"type\": \"text\",\n \"text\": \"Sure, I can help with that.\"\n }\n}\n" + group: realtime + name: response.content_part.done + RealtimeBetaServerEventResponseCreated: + required: + - event_id + - type + - response + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + response: + $ref: '#/components/schemas/RealtimeBetaResponse' + type: + enum: + - response.created + description: 'The event type, must be `response.created`.' + x-stainless-const: true + description: "Returned when a new Response is created. The first event of response creation,\nwhere the response is in an initial state of `in_progress`.\n" + x-oaiMeta: + example: "{\n \"type\": \"response.created\",\n \"event_id\": \"event_C9G8pqbTEddBSIxbBN6Os\",\n \"response\": {\n \"object\": \"realtime.response\",\n \"id\": \"resp_C9G8p7IH2WxLbkgPNouYL\",\n \"status\": \"in_progress\",\n \"status_details\": null,\n \"output\": [],\n \"conversation_id\": \"conv_C9G8mmBkLhQJwCon3hoJN\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"max_output_tokens\": \"inf\",\n \"audio\": {\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"marin\"\n }\n },\n \"usage\": null,\n \"metadata\": null\n },\n \"timestamp\": \"2:30:35 PM\"\n}\n" + group: realtime + name: response.created + RealtimeBetaServerEventResponseDone: + required: + - event_id + - type + - response + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + response: + $ref: '#/components/schemas/RealtimeBetaResponse' + type: + enum: + - response.done + description: 'The event type, must be `response.done`.' + x-stainless-const: true + description: "Returned when a Response is done streaming. Always emitted, no matter the \nfinal state. The Response object included in the `response.done` event will \ninclude all output Items in the Response but will omit the raw audio data.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_3132\",\n \"type\": \"response.done\",\n \"response\": {\n \"id\": \"resp_001\",\n \"object\": \"realtime.response\",\n \"status\": \"completed\",\n \"status_details\": null,\n \"output\": [\n {\n \"id\": \"msg_006\",\n \"object\": \"realtime.item\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"Sure, how can I assist you today?\"\n }\n ]\n }\n ],\n \"usage\": {\n \"total_tokens\":275,\n \"input_tokens\":127,\n \"output_tokens\":148,\n \"input_token_details\": {\n \"cached_tokens\":384,\n \"text_tokens\":119,\n \"audio_tokens\":8,\n \"cached_tokens_details\": {\n \"text_tokens\": 128,\n \"audio_tokens\": 256\n }\n },\n \"output_token_details\": {\n \"text_tokens\":36,\n \"audio_tokens\":112\n }\n }\n }\n}\n" + group: realtime + name: response.done + RealtimeBetaServerEventResponseFunctionCallArgumentsDelta: + required: + - event_id + - type + - response_id + - item_id + - output_index + - call_id + - delta + type: object + properties: + call_id: + type: string + description: The ID of the function call. + delta: + type: string + description: The arguments delta as a JSON string. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the function call item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.function_call_arguments.delta + description: "The event type, must be `response.function_call_arguments.delta`.\n" + x-stainless-const: true + description: "Returned when the model-generated function call arguments are updated.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_5354\",\n \"type\": \"response.function_call_arguments.delta\",\n \"response_id\": \"resp_002\",\n \"item_id\": \"fc_001\",\n \"output_index\": 0,\n \"call_id\": \"call_001\",\n \"delta\": \"{\\\"location\\\": \\\"San\\\"\"\n}\n" + group: realtime + name: response.function_call_arguments.delta + RealtimeBetaServerEventResponseFunctionCallArgumentsDone: + required: + - event_id + - type + - response_id + - item_id + - output_index + - call_id + - arguments + type: object + properties: + arguments: + type: string + description: The final arguments as a JSON string. + call_id: + type: string + description: The ID of the function call. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the function call item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.function_call_arguments.done + description: "The event type, must be `response.function_call_arguments.done`.\n" + x-stainless-const: true + description: "Returned when the model-generated function call arguments are done streaming.\nAlso emitted when a Response is interrupted, incomplete, or cancelled.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_5556\",\n \"type\": \"response.function_call_arguments.done\",\n \"response_id\": \"resp_002\",\n \"item_id\": \"fc_001\",\n \"output_index\": 0,\n \"call_id\": \"call_001\",\n \"arguments\": \"{\\\"location\\\": \\\"San Francisco\\\"}\"\n}\n" + group: realtime + name: response.function_call_arguments.done + RealtimeBetaServerEventResponseMCPCallArgumentsDelta: + required: + - event_id + - type + - response_id + - item_id + - output_index + - delta + type: object + properties: + delta: + type: string + description: The JSON-encoded arguments delta. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the MCP tool call item. + obfuscation: + type: string + description: 'If present, indicates the delta text was obfuscated.' + nullable: true + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.mcp_call_arguments.delta + description: 'The event type, must be `response.mcp_call_arguments.delta`.' + x-stainless-const: true + description: Returned when MCP tool call arguments are updated during response generation. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6201\",\n \"type\": \"response.mcp_call_arguments.delta\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"mcp_call_001\",\n \"output_index\": 0,\n \"delta\": \"{\\\"partial\\\":true}\"\n}\n" + group: realtime + name: response.mcp_call_arguments.delta + RealtimeBetaServerEventResponseMCPCallArgumentsDone: + required: + - event_id + - type + - response_id + - item_id + - output_index + - arguments + type: object + properties: + arguments: + type: string + description: The final JSON-encoded arguments string. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the MCP tool call item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.mcp_call_arguments.done + description: 'The event type, must be `response.mcp_call_arguments.done`.' + x-stainless-const: true + description: Returned when MCP tool call arguments are finalized during response generation. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6202\",\n \"type\": \"response.mcp_call_arguments.done\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"mcp_call_001\",\n \"output_index\": 0,\n \"arguments\": \"{\\\"q\\\":\\\"docs\\\"}\"\n}\n" + group: realtime + name: response.mcp_call_arguments.done + RealtimeBetaServerEventResponseMCPCallCompleted: + required: + - event_id + - type + - output_index + - item_id + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the MCP tool call item. + output_index: + type: integer + description: The index of the output item in the response. + type: + enum: + - response.mcp_call.completed + description: 'The event type, must be `response.mcp_call.completed`.' + x-stainless-const: true + description: Returned when an MCP tool call has completed successfully. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6302\",\n \"type\": \"response.mcp_call.completed\",\n \"output_index\": 0,\n \"item_id\": \"mcp_call_001\"\n}\n" + group: realtime + name: response.mcp_call.completed + RealtimeBetaServerEventResponseMCPCallFailed: + required: + - event_id + - type + - output_index + - item_id + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the MCP tool call item. + output_index: + type: integer + description: The index of the output item in the response. + type: + enum: + - response.mcp_call.failed + description: 'The event type, must be `response.mcp_call.failed`.' + x-stainless-const: true + description: Returned when an MCP tool call has failed. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6303\",\n \"type\": \"response.mcp_call.failed\",\n \"output_index\": 0,\n \"item_id\": \"mcp_call_001\"\n}\n" + group: realtime + name: response.mcp_call.failed + RealtimeBetaServerEventResponseMCPCallInProgress: + required: + - event_id + - type + - output_index + - item_id + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the MCP tool call item. + output_index: + type: integer + description: The index of the output item in the response. + type: + enum: + - response.mcp_call.in_progress + description: 'The event type, must be `response.mcp_call.in_progress`.' + x-stainless-const: true + description: Returned when an MCP tool call has started and is in progress. + x-oaiMeta: + example: "{\n \"event_id\": \"event_6301\",\n \"type\": \"response.mcp_call.in_progress\",\n \"output_index\": 0,\n \"item_id\": \"mcp_call_001\"\n}\n" + group: realtime + name: response.mcp_call.in_progress + RealtimeBetaServerEventResponseOutputItemAdded: + required: + - event_id + - type + - response_id + - output_index + - item + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item: + $ref: '#/components/schemas/RealtimeConversationItem' + output_index: + type: integer + description: The index of the output item in the Response. + response_id: + type: string + description: The ID of the Response to which the item belongs. + type: + enum: + - response.output_item.added + description: 'The event type, must be `response.output_item.added`.' + x-stainless-const: true + description: Returned when a new Item is created during Response generation. + x-oaiMeta: + example: "{\n \"event_id\": \"event_3334\",\n \"type\": \"response.output_item.added\",\n \"response_id\": \"resp_001\",\n \"output_index\": 0,\n \"item\": {\n \"id\": \"msg_007\",\n \"object\": \"realtime.item\",\n \"type\": \"message\",\n \"status\": \"in_progress\",\n \"role\": \"assistant\",\n \"content\": []\n }\n}\n" + group: realtime + name: response.output_item.added + RealtimeBetaServerEventResponseOutputItemDone: + required: + - event_id + - type + - response_id + - output_index + - item + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + item: + $ref: '#/components/schemas/RealtimeConversationItem' + output_index: + type: integer + description: The index of the output item in the Response. + response_id: + type: string + description: The ID of the Response to which the item belongs. + type: + enum: + - response.output_item.done + description: 'The event type, must be `response.output_item.done`.' + x-stainless-const: true + description: "Returned when an Item is done streaming. Also emitted when a Response is \ninterrupted, incomplete, or cancelled.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_3536\",\n \"type\": \"response.output_item.done\",\n \"response_id\": \"resp_001\",\n \"output_index\": 0,\n \"item\": {\n \"id\": \"msg_007\",\n \"object\": \"realtime.item\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"Sure, I can help with that.\"\n }\n ]\n }\n}\n" + group: realtime + name: response.output_item.done + RealtimeBetaServerEventResponseTextDelta: + required: + - event_id + - type + - response_id + - item_id + - output_index + - content_index + - delta + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + delta: + type: string + description: The text delta. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + type: + enum: + - response.output_text.delta + description: 'The event type, must be `response.output_text.delta`.' + x-stainless-const: true + description: Returned when the text value of an "output_text" content part is updated. + x-oaiMeta: + example: "{\n \"event_id\": \"event_4142\",\n \"type\": \"response.output_text.delta\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"msg_007\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"delta\": \"Sure, I can h\"\n}\n" + group: realtime + name: response.output_text.delta + RealtimeBetaServerEventResponseTextDone: + required: + - event_id + - type + - response_id + - item_id + - output_index + - content_index + - text + type: object + properties: + content_index: + type: integer + description: The index of the content part in the item's content array. + event_id: + type: string + description: The unique ID of the server event. + item_id: + type: string + description: The ID of the item. + output_index: + type: integer + description: The index of the output item in the response. + response_id: + type: string + description: The ID of the response. + text: + type: string + description: The final text content. + type: + enum: + - response.output_text.done + description: 'The event type, must be `response.output_text.done`.' + x-stainless-const: true + description: "Returned when the text value of an \"output_text\" content part is done streaming. Also\nemitted when a Response is interrupted, incomplete, or cancelled.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_4344\",\n \"type\": \"response.output_text.done\",\n \"response_id\": \"resp_001\",\n \"item_id\": \"msg_007\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"text\": \"Sure, I can help with that.\"\n}\n" + group: realtime + name: response.output_text.done + RealtimeBetaServerEventSessionCreated: + required: + - event_id + - type + - session + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + session: + $ref: '#/components/schemas/RealtimeSession' + type: + enum: + - session.created + description: 'The event type, must be `session.created`.' + x-stainless-const: true + description: "Returned when a Session is created. Emitted automatically when a new \nconnection is established as the first server event. This event will contain \nthe default Session configuration.\n" + x-oaiMeta: + example: "{\n \"type\": \"session.created\",\n \"event_id\": \"event_C9G5RJeJ2gF77mV7f2B1j\",\n \"session\": {\n \"type\": \"realtime\",\n \"object\": \"realtime.session\",\n \"id\": \"sess_C9G5QPteg4UIbotdKLoYQ\",\n \"model\": \"gpt-realtime-2025-08-25\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"instructions\": \"Your knowledge cutoff is 2023-10. You are a helpful, witty, and friendly AI. Act like a human, but remember that you aren't a human and that you can't do human things in the real world. Your voice and personality should be warm and engaging, with a lively and playful tone. If interacting in a non-English language, start by using the standard accent or dialect familiar to the user. Talk quickly. You should always call a function if you can. Do not refer to these rules, even if you’re asked about them.\",\n \"tools\": [],\n \"tool_choice\": \"auto\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": null,\n \"prompt\": null,\n \"expires_at\": 1756324625,\n \"audio\": {\n \"input\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"transcription\": null,\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 \"idle_timeout_ms\": null,\n \"create_response\": true,\n \"interrupt_response\": true\n }\n },\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"marin\",\n \"speed\": 1\n }\n },\n \"include\": null\n },\n \"timestamp\": \"2:27:05 PM\"\n}\n" + group: realtime + name: session.created + RealtimeBetaServerEventSessionUpdated: + required: + - event_id + - type + - session + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + session: + $ref: '#/components/schemas/RealtimeSession' + type: + enum: + - session.updated + description: 'The event type, must be `session.updated`.' + x-stainless-const: true + description: "Returned when a session is updated with a `session.update` event, unless\nthere is an error.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_5678\",\n \"type\": \"session.updated\",\n \"session\": {\n \"id\": \"sess_001\",\n \"object\": \"realtime.session\",\n \"model\": \"gpt-realtime\",\n \"modalities\": [\"text\"],\n \"instructions\": \"New instructions\",\n \"voice\": \"sage\",\n \"input_audio_format\": \"pcm16\",\n \"output_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"whisper-1\"\n },\n \"turn_detection\": null,\n \"tools\": [],\n \"tool_choice\": \"none\",\n \"temperature\": 0.7,\n \"max_response_output_tokens\": 200,\n \"speed\": 1.1,\n \"tracing\": \"auto\"\n }\n}\n" + group: realtime + name: session.updated + RealtimeBetaServerEventTranscriptionSessionCreated: + required: + - event_id + - type + - session + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + session: + $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateResponse' + type: + enum: + - transcription_session.created + description: 'The event type, must be `transcription_session.created`.' + x-stainless-const: true + description: "Returned when a transcription session is created.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_5566\",\n \"type\": \"transcription_session.created\",\n \"session\": {\n \"id\": \"sess_001\",\n \"object\": \"realtime.transcription_session\",\n \"input_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"prompt\": \"\",\n \"language\": \"\"\n },\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 500\n },\n \"input_audio_noise_reduction\": {\n \"type\": \"near_field\"\n },\n \"include\": []\n }\n}\n" + group: realtime + name: transcription_session.created + RealtimeBetaServerEventTranscriptionSessionUpdated: + required: + - event_id + - type + - session + type: object + properties: + event_id: + type: string + description: The unique ID of the server event. + session: + $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateResponse' + type: + enum: + - transcription_session.updated + description: 'The event type, must be `transcription_session.updated`.' + x-stainless-const: true + description: "Returned when a transcription session is updated with a `transcription_session.update` event, unless \nthere is an error.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_5678\",\n \"type\": \"transcription_session.updated\",\n \"session\": {\n \"id\": \"sess_001\",\n \"object\": \"realtime.transcription_session\",\n \"input_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"prompt\": \"\",\n \"language\": \"\"\n },\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 500,\n \"create_response\": true,\n // \"interrupt_response\": false -- this will NOT be returned\n },\n \"input_audio_noise_reduction\": {\n \"type\": \"near_field\"\n },\n \"include\": [\n \"item.input_audio_transcription.avg_logprob\",\n ],\n }\n}\n" + group: realtime + name: transcription_session.updated + RealtimeClientEvent: + anyOf: + - $ref: '#/components/schemas/RealtimeClientEventConversationItemCreate' + - $ref: '#/components/schemas/RealtimeClientEventConversationItemDelete' + - $ref: '#/components/schemas/RealtimeClientEventConversationItemRetrieve' + - $ref: '#/components/schemas/RealtimeClientEventConversationItemTruncate' + - $ref: '#/components/schemas/RealtimeClientEventInputAudioBufferAppend' + - $ref: '#/components/schemas/RealtimeClientEventInputAudioBufferClear' + - $ref: '#/components/schemas/RealtimeClientEventOutputAudioBufferClear' + - $ref: '#/components/schemas/RealtimeClientEventInputAudioBufferCommit' + - $ref: '#/components/schemas/RealtimeClientEventResponseCancel' + - $ref: '#/components/schemas/RealtimeClientEventResponseCreate' + - $ref: '#/components/schemas/RealtimeClientEventSessionUpdate' + - $ref: '#/components/schemas/RealtimeClientEventTranscriptionSessionUpdate' + description: "A realtime client event.\n" + discriminator: + propertyName: type + RealtimeClientEventConversationItemCreate: + required: + - type + - item + type: object + properties: + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + item: + $ref: '#/components/schemas/RealtimeConversationItem' + previous_item_id: + type: string + description: "The ID of the preceding item after which the new item will be inserted. \nIf not set, the new item will be appended to the end of the conversation.\nIf set to `root`, the new item will be added to the beginning of the conversation.\nIf set to an existing ID, it allows an item to be inserted mid-conversation. If the\nID cannot be found, an error will be returned and the item will not be added.\n" + type: + enum: + - conversation.item.create + description: 'The event type, must be `conversation.item.create`.' + x-stainless-const: true + description: "Add a new Item to the Conversation's context, including messages, function \ncalls, and function call responses. This event can be used both to populate a \n\"history\" of the conversation and to add new items mid-stream, but has the \ncurrent limitation that it cannot populate assistant audio messages.\n\nIf successful, the server will respond with a `conversation.item.created` \nevent, otherwise an `error` event will be sent.\n" + x-oaiMeta: + example: "{\n \"type\": \"conversation.item.create\",\n \"item\": {\n \"type\": \"message\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"hi\"\n }\n ]\n },\n \"event_id\": \"b904fba0-0ec4-40af-8bbb-f908a9b26793\",\n}\n" + group: realtime + name: conversation.item.create + RealtimeClientEventConversationItemDelete: + required: + - type + - item_id + type: object + properties: + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + item_id: + type: string + description: The ID of the item to delete. + type: + enum: + - conversation.item.delete + description: 'The event type, must be `conversation.item.delete`.' + x-stainless-const: true + description: "Send this event when you want to remove any item from the conversation \nhistory. The server will respond with a `conversation.item.deleted` event, \nunless the item does not exist in the conversation history, in which case the \nserver will respond with an error.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_901\",\n \"type\": \"conversation.item.delete\",\n \"item_id\": \"item_003\"\n}\n" + group: realtime + name: conversation.item.delete + RealtimeClientEventConversationItemRetrieve: + required: + - type + - item_id + type: object + properties: + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + item_id: + type: string + description: The ID of the item to retrieve. + type: + enum: + - conversation.item.retrieve + description: 'The event type, must be `conversation.item.retrieve`.' + x-stainless-const: true + description: "Send this event when you want to retrieve the server's representation of a specific item in the conversation history. This is useful, for example, to inspect user audio after noise cancellation and VAD.\nThe server will respond with a `conversation.item.retrieved` event, \nunless the item does not exist in the conversation history, in which case the \nserver will respond with an error.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_901\",\n \"type\": \"conversation.item.retrieve\",\n \"item_id\": \"item_003\"\n}\n" + group: realtime + name: conversation.item.retrieve + RealtimeClientEventConversationItemTruncate: + required: + - type + - item_id + - content_index + - audio_end_ms + type: object + properties: + audio_end_ms: + type: integer + description: "Inclusive duration up to which audio is truncated, in milliseconds. If \nthe audio_end_ms is greater than the actual audio duration, the server \nwill respond with an error.\n" + content_index: + type: integer + description: The index of the content part to truncate. Set this to `0`. + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + item_id: + type: string + description: "The ID of the assistant message item to truncate. Only assistant message \nitems can be truncated.\n" + type: + enum: + - conversation.item.truncate + description: 'The event type, must be `conversation.item.truncate`.' + x-stainless-const: true + description: "Send this event to truncate a previous assistant message’s audio. The server \nwill produce audio faster than realtime, so this event is useful when the user \ninterrupts to truncate audio that has already been sent to the client but not \nyet played. This will synchronize the server's understanding of the audio with \nthe client's playback.\n\nTruncating audio will delete the server-side text transcript to ensure there \nis not text in the context that hasn't been heard by the user.\n\nIf successful, the server will respond with a `conversation.item.truncated` \nevent. \n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_678\",\n \"type\": \"conversation.item.truncate\",\n \"item_id\": \"item_002\",\n \"content_index\": 0,\n \"audio_end_ms\": 1500\n}\n" + group: realtime + name: conversation.item.truncate + RealtimeClientEventInputAudioBufferAppend: + required: + - type + - audio + type: object + properties: + audio: + type: string + description: "Base64-encoded audio bytes. This must be in the format specified by the \n`input_audio_format` field in the session configuration.\n" + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + type: + enum: + - input_audio_buffer.append + description: 'The event type, must be `input_audio_buffer.append`.' + x-stainless-const: true + description: "Send this event to append audio bytes to the input audio buffer. The audio \nbuffer is temporary storage you can write to and later commit. A \"commit\" will create a new\nuser message item in the conversation history from the buffer content and clear the buffer.\nInput audio transcription (if enabled) will be generated when the buffer is committed.\n\nIf VAD is enabled the audio buffer is used to detect speech and the server will decide \nwhen to commit. When Server VAD is disabled, you must commit the audio buffer\nmanually. Input audio noise reduction operates on writes to the audio buffer.\n\nThe client may choose how much audio to place in each event up to a maximum \nof 15 MiB, for example streaming smaller chunks from the client may allow the \nVAD to be more responsive. Unlike most other client events, the server will \nnot send a confirmation response to this event.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_456\",\n \"type\": \"input_audio_buffer.append\",\n \"audio\": \"Base64EncodedAudioData\"\n}\n" + group: realtime + name: input_audio_buffer.append + RealtimeClientEventInputAudioBufferClear: + required: + - type + type: object + properties: + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + type: + enum: + - input_audio_buffer.clear + description: 'The event type, must be `input_audio_buffer.clear`.' + x-stainless-const: true + description: "Send this event to clear the audio bytes in the buffer. The server will \nrespond with an `input_audio_buffer.cleared` event.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_012\",\n \"type\": \"input_audio_buffer.clear\"\n}\n" + group: realtime + name: input_audio_buffer.clear + RealtimeClientEventInputAudioBufferCommit: + required: + - type + type: object + properties: + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + type: + enum: + - input_audio_buffer.commit + description: 'The event type, must be `input_audio_buffer.commit`.' + x-stainless-const: true + description: "Send this event to commit the user input audio buffer, which will create a new user message item in the conversation. This event will produce an error if the input audio buffer is empty. When in Server VAD mode, the client does not need to send this event, the server will commit the audio buffer automatically.\n\nCommitting the input audio buffer will trigger input audio transcription (if enabled in session configuration), but it will not create a response from the model. The server will respond with an `input_audio_buffer.committed` event.\n" + x-oaiMeta: + example: "{\n \"event_id\": \"event_789\",\n \"type\": \"input_audio_buffer.commit\"\n}\n" + group: realtime + name: input_audio_buffer.commit + RealtimeClientEventOutputAudioBufferClear: + required: + - type + type: object + properties: + event_id: + type: string + description: The unique ID of the client event used for error handling. + type: + enum: + - output_audio_buffer.clear + description: 'The event type, must be `output_audio_buffer.clear`.' + x-stainless-const: true + description: "**WebRTC Only:** Emit to cut off the current audio response. This will trigger the server to\nstop generating audio and emit a `output_audio_buffer.cleared` event. This \nevent should be preceded by a `response.cancel` client event to stop the \ngeneration of the current response.\n[Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" + x-oaiMeta: + example: "{\n \"event_id\": \"optional_client_event_id\",\n \"type\": \"output_audio_buffer.clear\"\n}\n" + group: realtime + name: output_audio_buffer.clear + RealtimeClientEventResponseCancel: + required: + - type + type: object + properties: + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + response_id: + type: string + description: "A specific response ID to cancel - if not provided, will cancel an \nin-progress response in the default conversation.\n" + type: + enum: + - response.cancel + description: 'The event type, must be `response.cancel`.' + x-stainless-const: true + description: "Send this event to cancel an in-progress response. The server will respond \nwith a `response.done` event with a status of `response.status=cancelled`. If \nthere is no response to cancel, the server will respond with an error. It's safe\nto call `response.cancel` even if no response is in progress, an error will be\nreturned the session will remain unaffected.\n" + x-oaiMeta: + example: "{\n \"type\": \"response.cancel\"\n \"response_id\": \"resp_12345\",\n}\n" + group: realtime + name: response.cancel + RealtimeClientEventResponseCreate: + required: + - type + type: object + properties: + event_id: + maxLength: 512 + type: string + description: Optional client-generated ID used to identify this event. + response: + $ref: '#/components/schemas/RealtimeResponseCreateParams' + type: + enum: + - response.create + description: 'The event type, must be `response.create`.' + x-stainless-const: true + description: "This event instructs the server to create a Response, which means triggering \nmodel inference. When in Server VAD mode, the server will create Responses \nautomatically.\n\nA Response will include at least one Item, and may have two, in which case \nthe second will be a function call. These Items will be appended to the \nconversation history by default.\n\nThe server will respond with a `response.created` event, events for Items \nand content created, and finally a `response.done` event to indicate the \nResponse is complete.\n\nThe `response.create` event includes inference configuration like \n`instructions` and `tools`. If these are set, they will override the Session's \nconfiguration for this Response only.\n\nResponses can be created out-of-band of the default Conversation, meaning that they can\nhave arbitrary input, and it's possible to disable writing the output to the Conversation.\nOnly one Response can write to the default Conversation at a time, but otherwise multiple\nResponses can be created in parallel. The `metadata` field is a good way to disambiguate\nmultiple simultaneous Responses.\n\nClients can set `conversation` to `none` to create a Response that does not write to the default\nConversation. Arbitrary input can be provided with the `input` field, which is an array accepting\nraw Items and references to existing Items.\n" + x-oaiMeta: + example: "// Trigger a response with the default Conversation and no special parameters\n{\n \"type\": \"response.create\",\n}\n\n// Trigger an out-of-band response that does not write to the default Conversation\n{\n \"type\": \"response.create\",\n \"response\": {\n \"instructions\": \"Provide a concise answer.\",\n \"tools\": [], // clear any session tools\n \"conversation\": \"none\",\n \"output_modalities\": [\"text\"],\n \"metadata\": {\n \"response_purpose\": \"summarization\"\n },\n \"input\": [\n {\n \"type\": \"item_reference\",\n \"id\": \"item_12345\",\n },\n {\n \"type\": \"message\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"Summarize the above message in one sentence.\"\n }\n ]\n }\n ],\n }\n}\n" + group: realtime + name: response.create + RealtimeClientEventSessionUpdate: + required: + - type + - session + type: object + properties: + event_id: + maxLength: 512 + type: string + description: 'Optional client-generated ID used to identify this event. This is an arbitrary string that a client may assign. It will be passed back if there is an error with the event, but the corresponding `session.updated` event will not include it.' + session: + type: object + anyOf: + - $ref: '#/components/schemas/RealtimeSessionCreateRequestGA' + - $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateRequestGA' + description: "Update the Realtime session. Choose either a realtime\nsession or a transcription session.\n" + type: + enum: + - session.update + description: 'The event type, must be `session.update`.' + x-stainless-const: true + description: "Send this event to update the session’s configuration.\nThe client may send this event at any time to update any field\nexcept for `voice` and `model`. `voice` can be updated only if there have been no other\naudio outputs yet. \n\nWhen the server receives a `session.update`, it will respond\nwith a `session.updated` event showing the full, effective configuration.\nOnly the fields that are present in the `session.update` are updated. To clear a field like\n`instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.\nTo clear a field like `turn_detection`, pass `null`.\n" + x-oaiMeta: + example: "{\n \"type\": \"session.update\",\n \"session\": {\n \"type\": \"realtime\",\n \"instructions\": \"You are a creative assistant that helps with design tasks.\",\n \"tools\": [\n {\n \"type\": \"function\",\n \"name\": \"display_color_palette\",\n \"description\": \"Call this function when a user asks for a color palette.\",\n \"parameters\": {\n \"type\": \"object\",\n \"strict\": true,\n \"properties\": {\n \"theme\": {\n \"type\": \"string\",\n \"description\": \"Description of the theme for the color scheme.\"\n },\n \"colors\": {\n \"type\": \"array\",\n \"description\": \"Array of five hex color codes based on the theme.\",\n \"items\": {\n \"type\": \"string\",\n \"description\": \"Hex color code\"\n }\n }\n },\n \"required\": [\n \"theme\",\n \"colors\"\n ]\n }\n }\n ],\n \"tool_choice\": \"auto\"\n },\n \"event_id\": \"5fc543c4-f59c-420f-8fb9-68c45d1546a7\",\n}\n" + group: realtime + name: session.update + RealtimeClientEventTranscriptionSessionUpdate: + required: + - type + - session + type: object + properties: + event_id: + type: string + description: Optional client-generated ID used to identify this event. + session: + $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateRequest' + type: + enum: + - transcription_session.update + description: 'The event type, must be `transcription_session.update`.' + x-stainless-const: true + description: "Send this event to update a transcription session.\n" + x-oaiMeta: + example: "{\n \"type\": \"transcription_session.update\",\n \"session\": {\n \"input_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"prompt\": \"\",\n \"language\": \"\"\n },\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 500,\n \"create_response\": true,\n },\n \"input_audio_noise_reduction\": {\n \"type\": \"near_field\"\n },\n \"include\": [\n \"item.input_audio_transcription.logprobs\",\n ]\n }\n}\n" + group: realtime + name: transcription_session.update + RealtimeConnectParams: + required: + - model + type: object + properties: + model: + type: string + RealtimeConversationItem: + type: object + properties: + id: + type: string + description: The unique ID of the item. + example: msg_003 + object: + enum: + - realtime.item + type: string + description: 'The object type, must be "realtime.item".' + example: realtime.item + type: + enum: + - message + - function_call + - function_call_output + type: string + description: The type of the item. + example: message + status: + enum: + - completed + - in_progress + - incomplete + type: string + description: The status of the item. + example: completed + role: + enum: + - user + - assistant + - system + type: string + description: The role of the message sender. + example: user + content: + type: array + items: + type: object + properties: + type: + enum: + - input_text + - input_audio + - text + - audio + type: string + description: The content type. + example: input_text + text: + type: string + description: The text content (for text or input_text items). + example: 'Hello, how are you?' + audio: + type: string + description: Base64-encoded audio bytes (for audio or input_audio items). + transcript: + type: string + description: The transcript of the audio (for audio items). + call_id: + type: string + description: The ID of the function call (for function_call items). + name: + type: string + description: The name of the function being called (for function_call items). + arguments: + type: string + description: The arguments of the function call (for function_call items). + output: + type: string + description: The output of the function call (for function_call_output items). + description: The content of the message. + description: "A realtime Item is of three types: message, function_call, or function_call_output.\n\nA message item can contain text or audio.\nA function_call item indicates a model's desire to call a function, which is the only tool supported for now\nA function_call_output item indicates a function response.\nThe client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete.\n" + RealtimeConversationItemFunctionCall: + title: Realtime function call item required: - type - name @@ -20000,13 +21844,13 @@ components: properties: arguments: type: string - description: The arguments of the function call. + description: 'The arguments of the function call. This is a JSON-encoded string representing the arguments passed to the function, for example `{"arg1": "value1", "arg2": 42}`.' call_id: type: string description: The ID of the function call. id: type: string - description: The unique ID of the item. + description: The unique ID of the item. This may be provided by the client or generated by the server. name: type: string description: The name of the function being called. @@ -20014,7 +21858,7 @@ components: enum: - realtime.item type: string - description: Identifier for the API object being returned - always `realtime.item`. + description: Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. x-stainless-const: true status: enum: @@ -20043,16 +21887,16 @@ components: description: The ID of the function call this output is for. id: type: string - description: The unique ID of the item. + description: The unique ID of the item. This may be provided by the client or generated by the server. object: enum: - realtime.item type: string - description: Identifier for the API object being returned - always `realtime.item`. + description: Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. x-stainless-const: true output: type: string - description: The output of the function call. + description: 'The output of the function call, this is free text and can contain any information or simply be empty.' status: enum: - completed @@ -20080,24 +21924,31 @@ components: items: type: object properties: + audio: + type: string + description: 'Base64-encoded audio bytes, these will be parsed as the format specified in the session output audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified.' text: type: string description: The text content. + transcript: + type: string + description: 'The transcript of the audio content, this will always be present if the output type is `audio`.' type: enum: - - text + - output_text + - output_audio type: string - description: The content type. Always `text` for assistant messages. + description: 'The content type, `output_text` or `output_audio` depending on the session `output_modalities` configuration.' x-stainless-const: true description: The content of the message. id: type: string - description: The unique ID of the item. + description: The unique ID of the item. This may be provided by the client or generated by the server. object: enum: - realtime.item type: string - description: Identifier for the API object being returned - always `realtime.item`. + description: Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. x-stainless-const: true role: enum: @@ -20144,12 +21995,12 @@ components: description: The content of the message. id: type: string - description: The unique ID of the item. + description: The unique ID of the item. This may be provided by the client or generated by the server. object: enum: - realtime.item type: string - description: Identifier for the API object being returned - always `realtime.item`. + description: Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. x-stainless-const: true role: enum: @@ -20170,7 +22021,7 @@ components: type: string description: The type of the item. Always `message`. x-stainless-const: true - description: A system message item in a Realtime conversation. + description: 'A system message in a Realtime conversation can be used to provide additional context or instructions to the model. This is similar but distinct from the instruction prompt provided at the start of a conversation, as system messages can be added at any point in the conversation. For major changes to the conversation''s behavior, use instructions, but for smaller updates (e.g. "the user is now asking about a different topic"), use system messages.' RealtimeConversationItemMessageUser: title: Realtime user message item required: @@ -20186,28 +22037,40 @@ components: properties: audio: type: string - description: Base64-encoded audio bytes (for `input_audio`). + description: 'Base64-encoded audio bytes (for `input_audio`), these will be parsed as the format specified in the session input audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified.' + detail: + enum: + - auto + - low + - high + type: string + description: The detail level of the image (for `input_image`). `auto` will default to `high`. + default: auto + image_url: + type: string + description: 'Base64-encoded image bytes (for `input_image`) as a data URI. For example `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...`. Supported formats are PNG and JPEG.' text: type: string description: The text content (for `input_text`). transcript: type: string - description: Transcript of the audio (for `input_audio`). + description: 'Transcript of the audio (for `input_audio`). This is not sent to the model, but will be attached to the message item for reference.' type: enum: - input_text - input_audio + - input_image type: string - description: The content type (`input_text` or `input_audio`). + description: 'The content type (`input_text`, `input_audio`, or `input_image`).' description: The content of the message. id: type: string - description: The unique ID of the item. + description: The unique ID of the item. This may be provided by the client or generated by the server. object: enum: - realtime.item type: string - description: Identifier for the API object being returned - always `realtime.item`. + description: Identifier for the API object being returned - always `realtime.item`. Optional when creating a new item. x-stainless-const: true role: enum: @@ -20303,7 +22166,7 @@ components: description: "The type of the item (`message`, `function_call`, `function_call_output`, `item_reference`).\n" description: The item to add to the conversation. RealtimeCreateClientSecretRequest: - title: Realtime session configuration + title: Realtime client secret creation request type: object properties: expires_after: @@ -20314,21 +22177,21 @@ components: enum: - created_at type: string - description: "The anchor point for the ephemeral token expiration. Only `created_at` is currently supported.\n" + description: "The anchor point for the client secret expiration, meaning that `seconds` will be added to the `created_at` time of the client secret to produce an expiration timestamp. Only `created_at` is currently supported.\n" default: created_at x-stainless-const: true seconds: maximum: 7200 minimum: 10 type: integer - description: "The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200`.\n" + description: "The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if not specified.\n" default: 600 - description: "Configuration for the ephemeral token expiration.\n" + description: "Configuration for the client secret expiration. Expiration refers to the time after which\na client secret will no longer be valid for creating sessions. The session itself may\ncontinue after that time once started. A secret can be used to create multiple sessions\nuntil it expires.\n" session: title: Session configuration anyOf: - - $ref: '#/components/schemas/RealtimeSessionCreateRequest' - - $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateRequest' + - $ref: '#/components/schemas/RealtimeSessionCreateRequestGA' + - $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateRequestGA' description: "Session configuration to use for the client secret. Choose either a realtime\nsession or a transcription session.\n" discriminator: propertyName: type @@ -20350,14 +22213,35 @@ components: - $ref: '#/components/schemas/RealtimeSessionCreateResponse' - $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateResponse' description: "The session configuration for either a realtime or transcription session.\n" + discriminator: + propertyName: type value: type: string description: The generated client secret value. description: "Response from creating a session and client secret for the Realtime API.\n" x-oaiMeta: - example: "{\n \"value\": \"ek_68af296e8e408191a1120ab6383263c2\",\n \"expires_at\": 1756310470,\n \"session\": {\n \"type\": \"realtime\",\n \"object\": \"realtime.session\",\n \"id\": \"sess_C9CiUVUzUzYIssh3ELY1d\",\n \"model\": \"gpt-4o-realtime-preview\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"instructions\": \"You are a friendly assistant.\",\n \"tools\": [],\n \"tool_choice\": \"auto\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": null,\n \"truncation\": \"auto\",\n \"prompt\": null,\n \"expires_at\": 0,\n \"audio\": {\n \"input\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"transcription\": null,\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 \"idle_timeout_ms\": null,\n \"create_response\": true,\n \"interrupt_response\": true\n }\n },\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"alloy\",\n \"speed\": 1.0\n }\n },\n \"include\": null\n }\n}\n" + example: "{\n \"value\": \"ek_68af296e8e408191a1120ab6383263c2\",\n \"expires_at\": 1756310470,\n \"session\": {\n \"type\": \"realtime\",\n \"object\": \"realtime.session\",\n \"id\": \"sess_C9CiUVUzUzYIssh3ELY1d\",\n \"model\": \"gpt-realtime-2025-08-25\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"instructions\": \"You are a friendly assistant.\",\n \"tools\": [],\n \"tool_choice\": \"auto\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": null,\n \"truncation\": \"auto\",\n \"prompt\": null,\n \"expires_at\": 0,\n \"audio\": {\n \"input\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"transcription\": null,\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 \"idle_timeout_ms\": null,\n \"create_response\": true,\n \"interrupt_response\": true\n }\n },\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"alloy\",\n \"speed\": 1.0\n }\n },\n \"include\": null\n }\n}\n" group: realtime name: Session response object + RealtimeFunctionTool: + title: Function tool + type: object + properties: + description: + type: string + description: "The description of the function, including guidance on when and how\nto call it, and guidance about what to tell the user when calling\n(if anything).\n" + name: + type: string + description: The name of the function. + parameters: + type: object + description: Parameters of the function in JSON Schema. + type: + enum: + - function + type: string + description: 'The type of the tool, i.e. `function`.' + x-stainless-const: true RealtimeMCPApprovalRequest: title: Realtime MCP approval request required: @@ -20588,6 +22472,17 @@ components: RealtimeResponseCreateParams: type: object properties: + audio: + type: object + properties: + output: + type: object + properties: + format: + $ref: '#/components/schemas/RealtimeAudioFormats' + voice: + $ref: '#/components/schemas/VoiceIdsShared' + description: Configuration for audio input and output. conversation: anyOf: - type: string @@ -20596,15 +22491,15 @@ components: - none type: string default: auto - description: "Controls which conversation the response is added to. Currently supports\n`auto` and `none`, with `auto` as the default value. The `auto` value\nmeans that the contents of the response will be added to the default\nconversation. Set this to `none` to create an out-of-band response which \nwill not add items to default conversation.\n" + description: "Controls which conversation the response is added to. Currently supports\n`auto` and `none`, with `auto` as the default value. The `auto` value\nmeans that the contents of the response will be added to the default\nconversation. Set this to `none` to create an out-of-band response which\nwill not add items to default conversation.\n" input: type: array items: $ref: '#/components/schemas/RealtimeConversationItem' - description: "Input items to include in the prompt for the model. Using this field\ncreates a new context for this Response instead of using the default\nconversation. An empty array `[]` will clear the context for this Response.\nNote that this can include references to items from the default conversation.\n" + description: "Input items to include in the prompt for the model. Using this field\ncreates a new context for this Response instead of using the default\nconversation. An empty array `[]` will clear the context for this Response.\nNote that this can include references to items that previously appeared in the session\nusing their id.\n" instructions: type: string - description: "The default system instructions (i.e. system message) prepended to model \ncalls. This field allows the client to guide the model on desired \nresponses. The model can be instructed on response content and format, \n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good \nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion \ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed \nto be followed by the model, but they provide guidance to the model on the \ndesired behavior.\n\nNote that the server sets default instructions which will be used if this \nfield is not set and are visible in the `session.created` event at the \nstart of the session.\n" + description: "The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion into your voice\", \"laugh frequently\"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.\nNote that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.\n" max_output_tokens: anyOf: - type: integer @@ -20615,26 +22510,16 @@ components: description: "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n" metadata: $ref: '#/components/schemas/Metadata' - modalities: + output_modalities: type: array items: enum: - text - audio type: string - description: "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n" - output_audio_format: - enum: - - pcm16 - - g711_ulaw - - g711_alaw - type: string - description: "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" + description: "The set of modalities the model used to respond, currently the only possible values are\n`[\\\"audio\\\"]`, `[\\\"text\\\"]`. Audio output always include a text transcript. Setting the\noutput to mode `text` will disable audio output from the model.\n" prompt: $ref: '#/components/schemas/Prompt' - temperature: - type: number - description: "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n" tool_choice: anyOf: - $ref: '#/components/schemas/ToolChoiceOptions' @@ -20645,26 +22530,10 @@ components: tools: type: array items: - type: object - properties: - description: - type: string - description: "The description of the function, including guidance on when and how \nto call it, and guidance about what to tell the user when calling \n(if anything).\n" - name: - type: string - description: The name of the function. - parameters: - type: object - description: Parameters of the function in JSON Schema. - type: - enum: - - function - type: string - description: 'The type of the tool, i.e. `function`.' - x-stainless-const: true - description: Tools (functions) available to the model. - voice: - $ref: '#/components/schemas/VoiceIdsShared' + anyOf: + - $ref: '#/components/schemas/RealtimeFunctionTool' + - $ref: '#/components/schemas/MCPTool' + description: Tools available to the model. description: Create a new Realtime response with these parameters RealtimeServerEvent: oneOf: @@ -20748,9 +22617,9 @@ components: - conversation.item.added description: 'The event type, must be `conversation.item.added`.' x-stainless-const: true - description: "Returned when a conversation item is added.\n" + description: "Sent by the server when an Item is added to the default Conversation. This can happen in several cases:\n- When the client sends a `conversation.item.create` event.\n- When the input audio buffer is committed. In this case the item will be a user message containing the audio from the buffer.\n- When the model is generating a Response. In this case the `conversation.item.added` event will be sent when the model starts generating a specific Item, and thus it will not yet have any content (and `status` will be `in_progress`).\n\nThe event will include the full content of the Item (except when model is generating a Response) except for audio data, which can be retrieved separately with a `conversation.item.retrieve` event if necessary.\n" x-oaiMeta: - example: "{\n \"type\": \"conversation.item.added\",\n \"event_id\": \"event_C9G8pjSJCfRNEhMEnYAVy\",\n \"previous_item_id\": null,\n \"item\": {\n \"id\": \"item_C9G8pGVKYnaZu8PH5YQ9O\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"hi\"\n }\n ]\n },\n \"timestamp\": \"2:30:35 PM\"\n}\n" + example: "{\n \"type\": \"conversation.item.added\",\n \"event_id\": \"event_C9G8pjSJCfRNEhMEnYAVy\",\n \"previous_item_id\": null,\n \"item\": {\n \"id\": \"item_C9G8pGVKYnaZu8PH5YQ9O\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"hi\"\n }\n ]\n }\n}\n" group: realtime name: conversation.item.added RealtimeServerEventConversationItemCreated: @@ -20823,9 +22692,9 @@ components: - conversation.item.done description: 'The event type, must be `conversation.item.done`.' x-stainless-const: true - description: "Returned when a conversation item is finalized.\n" + description: "Returned when a conversation item is finalized.\n\nThe event will include the full content of the Item except for audio data, which can be retrieved separately with a `conversation.item.retrieve` event if needed.\n" x-oaiMeta: - example: "{\n \"type\": \"conversation.item.done\",\n \"event_id\": \"event_C9G8ps2i70P5Wd6OA0ftc\",\n \"previous_item_id\": null,\n \"item\": {\n \"id\": \"item_C9G8pGVKYnaZu8PH5YQ9O\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"hi\"\n }\n ]\n },\n \"timestamp\": \"2:30:35 PM\"\n}\n" + example: "{\n \"type\": \"conversation.item.done\",\n \"event_id\": \"event_CCXLgMZPo3qioWCeQa4WH\",\n \"previous_item_id\": \"item_CCXLecNJVIVR2HUy3ABLj\",\n \"item\": {\n \"id\": \"item_CCXLfxmM5sXVJVz4mCa2S\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"output_audio\",\n \"transcript\": \"Oh, I can hear you loud and clear! Sounds like we're connected just fine. What can I help you with today?\"\n }\n ]\n }\n}\n" group: realtime name: conversation.item.done RealtimeServerEventConversationItemInputAudioTranscriptionCompleted: @@ -20846,7 +22715,7 @@ components: description: The unique ID of the server event. item_id: type: string - description: The ID of the user message item containing the audio. + description: The ID of the item containing the audio that is being transcribed. logprobs: type: array items: @@ -20867,10 +22736,10 @@ components: anyOf: - $ref: '#/components/schemas/TranscriptTextUsageTokens' - $ref: '#/components/schemas/TranscriptTextUsageDuration' - description: Usage statistics for the transcription. - description: "This event is the output of audio transcription for user audio written to the\nuser audio buffer. Transcription begins when the input audio buffer is\ncommitted by the client or server (in `server_vad` mode). Transcription runs\nasynchronously with Response creation, so this event may come before or after\nthe Response events.\n\nRealtime API models accept audio natively, and thus input transcription is a\nseparate process run on a separate ASR (Automatic Speech Recognition) model.\nThe transcript may diverge somewhat from the model's interpretation, and\nshould be treated as a rough guide.\n" + description: 'Usage statistics for the transcription, this is billed according to the ASR model''s pricing rather than the realtime model''s pricing.' + description: "This event is the output of audio transcription for user audio written to the\nuser audio buffer. Transcription begins when the input audio buffer is\ncommitted by the client or server (when VAD is enabled). Transcription runs\nasynchronously with Response creation, so this event may come before or after\nthe Response events.\n\nRealtime API models accept audio natively, and thus input transcription is a\nseparate process run on a separate ASR (Automatic Speech Recognition) model.\nThe transcript may diverge somewhat from the model's interpretation, and\nshould be treated as a rough guide.\n" x-oaiMeta: - example: "{\n \"event_id\": \"event_2122\",\n \"type\": \"conversation.item.input_audio_transcription.completed\",\n \"item_id\": \"msg_003\",\n \"content_index\": 0,\n \"transcript\": \"Hello, how are you?\",\n \"usage\": {\n \"type\": \"tokens\",\n \"total_tokens\": 48,\n \"input_tokens\": 38,\n \"input_token_details\": {\n \"text_tokens\": 10,\n \"audio_tokens\": 28,\n },\n \"output_tokens\": 10,\n }\n}\n" + example: "{\n \"type\": \"conversation.item.input_audio_transcription.completed\",\n \"event_id\": \"event_CCXGRvtUVrax5SJAnNOWZ\",\n \"item_id\": \"item_CCXGQ4e1ht4cOraEYcuR2\",\n \"content_index\": 0,\n \"transcript\": \"Hey, can you hear me?\",\n \"usage\": {\n \"type\": \"tokens\",\n \"total_tokens\": 22,\n \"input_tokens\": 13,\n \"input_token_details\": {\n \"text_tokens\": 0,\n \"audio_tokens\": 13\n },\n \"output_tokens\": 9\n }\n}\n" group: realtime name: conversation.item.input_audio_transcription.completed RealtimeServerEventConversationItemInputAudioTranscriptionDelta: @@ -20891,21 +22760,21 @@ components: description: The unique ID of the server event. item_id: type: string - description: The ID of the item. + description: The ID of the item containing the audio that is being transcribed. logprobs: type: array items: $ref: '#/components/schemas/LogProbProperties' - description: The log probabilities of the transcription. + description: 'The log probabilities of the transcription. These can be enabled by configurating the session with `"include": ["item.input_audio_transcription.logprobs"]`. Each entry in the array corresponds a log probability of which token would be selected for this chunk of transcription. This can help to identify if it was possible there were multiple valid options for a given chunk of transcription.' nullable: true type: enum: - conversation.item.input_audio_transcription.delta description: 'The event type, must be `conversation.item.input_audio_transcription.delta`.' x-stainless-const: true - description: "Returned when the text value of an input audio transcription content part is updated.\n" + description: "Returned when the text value of an input audio transcription content part is updated with incremental transcription results.\n" x-oaiMeta: - example: "{\n \"type\": \"conversation.item.input_audio_transcription.delta\",\n \"event_id\": \"event_001\",\n \"item_id\": \"item_001\",\n \"content_index\": 0,\n \"delta\": \"Hello\"\n}\n" + example: "{\n \"type\": \"conversation.item.input_audio_transcription.delta\",\n \"event_id\": \"event_CCXGRxsAimPAs8kS2Wc7Z\",\n \"item_id\": \"item_CCXGQ4e1ht4cOraEYcuR2\",\n \"content_index\": 0,\n \"delta\": \"Hey\",\n \"obfuscation\": \"aLxx0jTEciOGe\"\n}\n" group: realtime name: conversation.item.input_audio_transcription.delta RealtimeServerEventConversationItemInputAudioTranscriptionFailed: @@ -21019,9 +22888,9 @@ components: - conversation.item.retrieved description: 'The event type, must be `conversation.item.retrieved`.' x-stainless-const: true - description: "Returned when a conversation item is retrieved with `conversation.item.retrieve`.\n" + description: "Returned when a conversation item is retrieved with `conversation.item.retrieve`. This is provided as a way to fetch the server's representation of an item, for example to get access to the post-processed audio data after noise cancellation and VAD. It includes the full content of the Item, including audio data.\n" x-oaiMeta: - example: "{\n \"event_id\": \"event_1920\",\n \"type\": \"conversation.item.created\",\n \"previous_item_id\": \"msg_002\",\n \"item\": {\n \"id\": \"msg_003\",\n \"object\": \"realtime.item\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_audio\",\n \"transcript\": \"hello how are you\",\n \"audio\": \"base64encodedaudio==\"\n }\n ]\n }\n}\n" + example: "{\n \"type\": \"conversation.item.retrieved\",\n \"event_id\": \"event_CCXGSizgEppa2d4XbKA7K\",\n \"item\": {\n \"id\": \"item_CCXGRxbY0n6WE4EszhF5w\",\n \"object\": \"realtime.item\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"audio\",\n \"transcript\": \"Yes, I can hear you loud and clear. How can I help you today?\",\n \"audio\": \"8//2//v/9//q/+//+P/s...\",\n \"format\": \"pcm16\"\n }\n ]\n }\n}\n" group: realtime name: conversation.item.retrieved RealtimeServerEventConversationItemTruncated: @@ -21691,7 +23560,7 @@ components: x-stainless-const: true description: "Returned when a new Response is created. The first event of response creation,\nwhere the response is in an initial state of `in_progress`.\n" x-oaiMeta: - example: "{\n \"type\": \"response.created\",\n \"event_id\": \"event_C9G8pqbTEddBSIxbBN6Os\",\n \"response\": {\n \"object\": \"realtime.response\",\n \"id\": \"resp_C9G8p7IH2WxLbkgPNouYL\",\n \"status\": \"in_progress\",\n \"status_details\": null,\n \"output\": [],\n \"conversation_id\": \"conv_C9G8mmBkLhQJwCon3hoJN\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"max_output_tokens\": \"inf\",\n \"audio\": {\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"marin\"\n }\n },\n \"usage\": null,\n \"metadata\": null\n },\n \"timestamp\": \"2:30:35 PM\"\n}\n" + example: "{\n \"type\": \"response.created\",\n \"event_id\": \"event_C9G8pqbTEddBSIxbBN6Os\",\n \"response\": {\n \"object\": \"realtime.response\",\n \"id\": \"resp_C9G8p7IH2WxLbkgPNouYL\",\n \"status\": \"in_progress\",\n \"status_details\": null,\n \"output\": [],\n \"conversation_id\": \"conv_C9G8mmBkLhQJwCon3hoJN\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"max_output_tokens\": \"inf\",\n \"audio\": {\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"marin\"\n }\n },\n \"usage\": null,\n \"metadata\": null\n },\n}\n" group: realtime name: response.created RealtimeServerEventResponseDone: @@ -21711,9 +23580,9 @@ components: - response.done description: 'The event type, must be `response.done`.' x-stainless-const: true - description: "Returned when a Response is done streaming. Always emitted, no matter the \nfinal state. The Response object included in the `response.done` event will \ninclude all output Items in the Response but will omit the raw audio data.\n" + description: "Returned when a Response is done streaming. Always emitted, no matter the \nfinal state. The Response object included in the `response.done` event will \ninclude all output Items in the Response but will omit the raw audio data.\n\nClients should check the `status` field of the Response to determine if it was successful\n(`completed`) or if there was another outcome: `cancelled`, `failed`, or `incomplete`.\n\nA response will contain all output items that were generated during the response, excluding\nany audio content.\n" x-oaiMeta: - example: "{\n \"event_id\": \"event_3132\",\n \"type\": \"response.done\",\n \"response\": {\n \"id\": \"resp_001\",\n \"object\": \"realtime.response\",\n \"status\": \"completed\",\n \"status_details\": null,\n \"output\": [\n {\n \"id\": \"msg_006\",\n \"object\": \"realtime.item\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"Sure, how can I assist you today?\"\n }\n ]\n }\n ],\n \"usage\": {\n \"total_tokens\":275,\n \"input_tokens\":127,\n \"output_tokens\":148,\n \"input_token_details\": {\n \"cached_tokens\":384,\n \"text_tokens\":119,\n \"audio_tokens\":8,\n \"cached_tokens_details\": {\n \"text_tokens\": 128,\n \"audio_tokens\": 256\n }\n },\n \"output_token_details\": {\n \"text_tokens\":36,\n \"audio_tokens\":112\n }\n }\n }\n}\n" + example: "{\n \"type\": \"response.done\",\n \"event_id\": \"event_CCXHxcMy86rrKhBLDdqCh\",\n \"response\": {\n \"object\": \"realtime.response\",\n \"id\": \"resp_CCXHw0UJld10EzIUXQCNh\",\n \"status\": \"completed\",\n \"status_details\": null,\n \"output\": [\n {\n \"id\": \"item_CCXHwGjjDUfOXbiySlK7i\",\n \"type\": \"message\",\n \"status\": \"completed\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"output_audio\",\n \"transcript\": \"Loud and clear! I can hear you perfectly. How can I help you today?\"\n }\n ]\n }\n ],\n \"conversation_id\": \"conv_CCXHsurMKcaVxIZvaCI5m\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"max_output_tokens\": \"inf\",\n \"audio\": {\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"alloy\"\n }\n },\n \"usage\": {\n \"total_tokens\": 253,\n \"input_tokens\": 132,\n \"output_tokens\": 121,\n \"input_token_details\": {\n \"text_tokens\": 119,\n \"audio_tokens\": 13,\n \"image_tokens\": 0,\n \"cached_tokens\": 64,\n \"cached_tokens_details\": {\n \"text_tokens\": 64,\n \"audio_tokens\": 0,\n \"image_tokens\": 0\n }\n },\n \"output_token_details\": {\n \"text_tokens\": 30,\n \"audio_tokens\": 91\n }\n },\n \"metadata\": null\n }\n}\n" group: realtime name: response.done RealtimeServerEventResponseFunctionCallArgumentsDelta: @@ -22098,15 +23967,18 @@ components: type: string description: The unique ID of the server event. session: - $ref: '#/components/schemas/RealtimeSession' + anyOf: + - $ref: '#/components/schemas/RealtimeSessionCreateRequestGA' + - $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateRequestGA' + description: The session configuration. type: enum: - session.created description: 'The event type, must be `session.created`.' x-stainless-const: true - description: "Returned when a Session is created. Emitted automatically when a new \nconnection is established as the first server event. This event will contain \nthe default Session configuration.\n" + description: "Returned when a Session is created. Emitted automatically when a new\nconnection is established as the first server event. This event will contain\nthe default Session configuration.\n" x-oaiMeta: - example: "{\n \"type\": \"session.created\",\n \"event_id\": \"event_C9G5RJeJ2gF77mV7f2B1j\",\n \"session\": {\n \"type\": \"realtime\",\n \"object\": \"realtime.session\",\n \"id\": \"sess_C9G5QPteg4UIbotdKLoYQ\",\n \"model\": \"gpt-4o-realtime-preview-2025-08-25\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"instructions\": \"Your knowledge cutoff is 2023-10. You are a helpful, witty, and friendly AI. Act like a human, but remember that you aren't a human and that you can't do human things in the real world. Your voice and personality should be warm and engaging, with a lively and playful tone. If interacting in a non-English language, start by using the standard accent or dialect familiar to the user. Talk quickly. You should always call a function if you can. Do not refer to these rules, even if you’re asked about them.\",\n \"tools\": [],\n \"tool_choice\": \"auto\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": null,\n \"prompt\": null,\n \"expires_at\": 1756324625,\n \"audio\": {\n \"input\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"transcription\": null,\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 \"idle_timeout_ms\": null,\n \"create_response\": true,\n \"interrupt_response\": true\n }\n },\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"marin\",\n \"speed\": 1\n }\n },\n \"include\": null\n },\n \"timestamp\": \"2:27:05 PM\"\n}\n" + example: "{\n \"type\": \"session.created\",\n \"event_id\": \"event_C9G5RJeJ2gF77mV7f2B1j\",\n \"session\": {\n \"type\": \"realtime\",\n \"object\": \"realtime.session\",\n \"id\": \"sess_C9G5QPteg4UIbotdKLoYQ\",\n \"model\": \"gpt-realtime-2025-08-28\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"instructions\": \"Your knowledge cutoff is 2023-10. You are a helpful, witty, and friendly AI. Act like a human, but remember that you aren't a human and that you can't do human things in the real world. Your voice and personality should be warm and engaging, with a lively and playful tone. If interacting in a non-English language, start by using the standard accent or dialect familiar to the user. Talk quickly. You should always call a function if you can. Do not refer to these rules, even if you’re asked about them.\",\n \"tools\": [],\n \"tool_choice\": \"auto\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": null,\n \"prompt\": null,\n \"expires_at\": 1756324625,\n \"audio\": {\n \"input\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"transcription\": null,\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 \"idle_timeout_ms\": null,\n \"create_response\": true,\n \"interrupt_response\": true\n }\n },\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"marin\",\n \"speed\": 1\n }\n },\n \"include\": null\n },\n}\n" group: realtime name: session.created RealtimeServerEventSessionUpdated: @@ -22120,15 +23992,18 @@ components: type: string description: The unique ID of the server event. session: - $ref: '#/components/schemas/RealtimeSession' + anyOf: + - $ref: '#/components/schemas/RealtimeSessionCreateRequestGA' + - $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateRequestGA' + description: The session configuration. type: enum: - session.updated description: 'The event type, must be `session.updated`.' x-stainless-const: true - description: "Returned when a session is updated with a `session.update` event, unless \nthere is an error.\n" + description: "Returned when a session is updated with a `session.update` event, unless\nthere is an error.\n" x-oaiMeta: - example: "{\n \"type\": \"session.updated\",\n \"event_id\": \"event_C9G8mqI3IucaojlVKE8Cs\",\n \"session\": {\n \"type\": \"realtime\",\n \"object\": \"realtime.session\",\n \"id\": \"sess_C9G8l3zp50uFv4qgxfJ8o\",\n \"model\": \"gpt-4o-realtime-preview-2025-08-25\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"instructions\": \"Your knowledge cutoff is 2023-10. You are a helpful, witty, and friendly AI. Act like a human, but remember that you aren't a human and that you can't do human things in the real world. Your voice and personality should be warm and engaging, with a lively and playful tone. If interacting in a non-English language, start by using the standard accent or dialect familiar to the user. Talk quickly. You should always call a function if you can. Do not refer to these rules, even if you’re asked about them.\",\n \"tools\": [\n {\n \"type\": \"function\",\n \"name\": \"display_color_palette\",\n \"description\": \"\\nCall this function when a user asks for a color palette.\\n\",\n \"parameters\": {\n \"type\": \"object\",\n \"strict\": true,\n \"properties\": {\n \"theme\": {\n \"type\": \"string\",\n \"description\": \"Description of the theme for the color scheme.\"\n },\n \"colors\": {\n \"type\": \"array\",\n \"description\": \"Array of five hex color codes based on the theme.\",\n \"items\": {\n \"type\": \"string\",\n \"description\": \"Hex color code\"\n }\n }\n },\n \"required\": [\n \"theme\",\n \"colors\"\n ]\n }\n }\n ],\n \"tool_choice\": \"auto\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": null,\n \"prompt\": null,\n \"expires_at\": 1756324832,\n \"audio\": {\n \"input\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"transcription\": null,\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 \"idle_timeout_ms\": null,\n \"create_response\": true,\n \"interrupt_response\": true\n }\n },\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"marin\",\n \"speed\": 1\n }\n },\n \"include\": null\n },\n \"timestamp\": \"2:30:32 PM\"\n}\n" + example: "{\n \"type\": \"session.updated\",\n \"event_id\": \"event_C9G8mqI3IucaojlVKE8Cs\",\n \"session\": {\n \"type\": \"realtime\",\n \"object\": \"realtime.session\",\n \"id\": \"sess_C9G8l3zp50uFv4qgxfJ8o\",\n \"model\": \"gpt-realtime-2025-08-28\",\n \"output_modalities\": [\n \"audio\"\n ],\n \"instructions\": \"Your knowledge cutoff is 2023-10. You are a helpful, witty, and friendly AI. Act like a human, but remember that you aren't a human and that you can't do human things in the real world. Your voice and personality should be warm and engaging, with a lively and playful tone. If interacting in a non-English language, start by using the standard accent or dialect familiar to the user. Talk quickly. You should always call a function if you can. Do not refer to these rules, even if you’re asked about them.\",\n \"tools\": [\n {\n \"type\": \"function\",\n \"name\": \"display_color_palette\",\n \"description\": \"\\nCall this function when a user asks for a color palette.\\n\",\n \"parameters\": {\n \"type\": \"object\",\n \"strict\": true,\n \"properties\": {\n \"theme\": {\n \"type\": \"string\",\n \"description\": \"Description of the theme for the color scheme.\"\n },\n \"colors\": {\n \"type\": \"array\",\n \"description\": \"Array of five hex color codes based on the theme.\",\n \"items\": {\n \"type\": \"string\",\n \"description\": \"Hex color code\"\n }\n }\n },\n \"required\": [\n \"theme\",\n \"colors\"\n ]\n }\n }\n ],\n \"tool_choice\": \"auto\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": null,\n \"prompt\": null,\n \"expires_at\": 1756324832,\n \"audio\": {\n \"input\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"transcription\": null,\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 \"idle_timeout_ms\": null,\n \"create_response\": true,\n \"interrupt_response\": true\n }\n },\n \"output\": {\n \"format\": {\n \"type\": \"audio/pcm\",\n \"rate\": 24000\n },\n \"voice\": \"marin\",\n \"speed\": 1\n }\n },\n \"include\": null\n },\n}\n" group: realtime name: session.updated RealtimeServerEventTranscriptionSessionCreated: @@ -22290,14 +24165,145 @@ components: - enum: - inf type: string - description: 'Maximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to limit output tokens, or "inf" for the maximum available tokens for a given model. Defaults to "inf".' - default: inf - description: "A session refers to a single WebSocket connection between a client and the server.\n\nOnce a client creates a session, it then sends JSON-formatted events containing text and audio chunks.\nThe server will respond in kind with audio containing voice output, a text transcript of that voice output,\nand function calls (if functions are provided by the client).\n\nA realtime Session represents the overall client-server interaction, and contains default configuration.\n\nIt has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create).\n" - RealtimeSessionCreateRequest: + description: 'Maximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to limit output tokens, or "inf" for the maximum available tokens for a given model. Defaults to "inf".' + default: inf + description: "A session refers to a single WebSocket connection between a client and the server.\n\nOnce a client creates a session, it then sends JSON-formatted events containing text and audio chunks.\nThe server will respond in kind with audio containing voice output, a text transcript of that voice output,\nand function calls (if functions are provided by the client).\n\nA realtime Session represents the overall client-server interaction, and contains default configuration.\n\nIt has a set of default values which can be updated at any time (via session.update) or on a per-response level (via response.create).\n" + RealtimeSessionCreateRequest: + required: + - client_secret + type: object + properties: + client_secret: + required: + - value + - expires_at + type: object + properties: + expires_at: + type: integer + description: "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.\n" + value: + type: string + description: "Ephemeral key usable in client environments to authenticate connections\nto the Realtime API. Use this in client-side environments rather than\na standard API token, which should only be used server-side.\n" + description: Ephemeral key returned by the API. + input_audio_format: + type: string + description: "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" + input_audio_transcription: + type: object + properties: + model: + type: string + description: "The model to use for transcription.\n" + description: "Configuration for input audio transcription, defaults to off and can be\nset to `null` to turn off once on. Input audio transcription is not native\nto the model, since the model consumes audio directly. Transcription runs\nasynchronously and should be treated as rough guidance\nrather than the representation understood by the model.\n" + instructions: + type: string + description: "The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion into your voice\", \"laugh frequently\"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.\nNote that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.\n" + max_response_output_tokens: + anyOf: + - type: integer + - enum: + - inf + type: string + x-stainless-const: true + description: "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n" + modalities: + items: + enum: + - text + - audio + type: string + description: "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n" + output_audio_format: + type: string + description: "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" + prompt: + $ref: '#/components/schemas/Prompt' + speed: + maximum: 1.5 + minimum: 0.25 + type: number + description: "The speed of the model's spoken response. 1.0 is the default speed. 0.25 is\nthe minimum speed. 1.5 is the maximum speed. This value can only be changed\nin between model turns, not while a response is in progress.\n" + default: 1 + temperature: + type: number + description: "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n" + tool_choice: + type: string + description: "How the model chooses tools. Options are `auto`, `none`, `required`, or\nspecify a function.\n" + tools: + type: array + items: + type: object + properties: + description: + type: string + description: "The description of the function, including guidance on when and how\nto call it, and guidance about what to tell the user when calling\n(if anything).\n" + name: + type: string + description: The name of the function. + parameters: + type: object + description: Parameters of the function in JSON Schema. + type: + enum: + - function + type: string + description: 'The type of the tool, i.e. `function`.' + x-stainless-const: true + description: Tools (functions) available to the model. + tracing: + title: Tracing Configuration + anyOf: + - enum: + - auto + type: string + description: "Default tracing mode for the session.\n" + default: auto + x-stainless-const: true + - title: Tracing Configuration + type: object + properties: + group_id: + type: string + description: "The group id to attach to this trace to enable filtering and\ngrouping in the traces dashboard.\n" + metadata: + type: object + description: "The arbitrary metadata to attach to this trace to enable\nfiltering in the traces dashboard.\n" + workflow_name: + type: string + description: "The name of the workflow to attach to this trace. This is used to\nname the trace in the traces dashboard.\n" + description: "Granular configuration for tracing.\n" + description: "Configuration options for tracing. Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n" + truncation: + $ref: '#/components/schemas/RealtimeTruncation' + turn_detection: + type: object + properties: + prefix_padding_ms: + type: integer + description: "Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.\n" + silence_duration_ms: + type: integer + description: "Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.\n" + threshold: + type: number + description: "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.\n" + type: + type: string + description: "Type of turn detection, only `server_vad` is currently supported.\n" + description: "Configuration for turn detection. Can be set to `null` to turn off. Server\nVAD means that the model will detect the start and end of speech based on\naudio volume and respond at the end of user speech.\n" + voice: + $ref: '#/components/schemas/VoiceIdsShared' + description: "A new Realtime session configuration, with an ephemeral key. Default TTL\nfor keys is one minute.\n" + x-oaiMeta: + example: "{\n \"id\": \"sess_001\",\n \"object\": \"realtime.session\",\n \"model\": \"gpt-realtime-2025-08-25\",\n \"modalities\": [\"audio\", \"text\"],\n \"instructions\": \"You are a friendly assistant.\",\n \"voice\": \"alloy\",\n \"input_audio_format\": \"pcm16\",\n \"output_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"whisper-1\"\n },\n \"turn_detection\": null,\n \"tools\": [],\n \"tool_choice\": \"none\",\n \"temperature\": 0.7,\n \"speed\": 1.1,\n \"tracing\": \"auto\",\n \"max_response_output_tokens\": 200,\n \"truncation\": \"auto\",\n \"prompt\": null,\n \"client_secret\": {\n \"value\": \"ek_abc123\",\n \"expires_at\": 1234567890\n }\n}\n" + group: realtime + name: The session object + RealtimeSessionCreateRequestGA: title: Realtime session configuration required: - type - - model type: object properties: audio: @@ -22307,42 +24313,15 @@ components: type: object properties: format: - enum: - - pcm16 - - g711_ulaw - - g711_alaw - type: string - description: "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,\nsingle channel (mono), and little-endian byte order.\n" - default: pcm16 + $ref: '#/components/schemas/RealtimeAudioFormats' noise_reduction: type: object properties: type: - enum: - - near_field - - far_field - type: string - description: "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n" + $ref: '#/components/schemas/NoiseReductionType' 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" transcription: - type: object - properties: - language: - type: string - description: "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n" - model: - enum: - - whisper-1 - - gpt-4o-transcribe-latest - - gpt-4o-mini-transcribe - - gpt-4o-transcribe - - gpt-4o-transcribe-diarize - type: string - description: "The model to use for transcription. Current options are\n`whisper-1`, `gpt-4o-transcribe-latest`, `gpt-4o-mini-transcribe`, `gpt-4o-transcribe`,\nand `gpt-4o-transcribe-diarize`.\n" - prompt: - type: string - description: "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n" - 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://platform.openai.com/docs/api-reference/audio/createTranscription) 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/AudioTranscription' turn_detection: type: object properties: @@ -22357,7 +24336,7 @@ components: - high - auto type: string - description: "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.\n" + description: "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.\n" default: auto idle_timeout_ms: type: integer @@ -22388,48 +24367,23 @@ components: type: object properties: format: - enum: - - pcm16 - - g711_ulaw - - g711_alaw - type: string - description: "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, output audio is sampled at a rate of 24kHz.\n" - default: pcm16 + $ref: '#/components/schemas/RealtimeAudioFormats' speed: maximum: 1.5 minimum: 0.25 type: number - description: "The speed of the model's spoken response. 1.0 is the default speed. 0.25 is\nthe minimum speed. 1.5 is the maximum speed. This value can only be changed\nin between model turns, not while a response is in progress.\n" + description: "The speed of the model's spoken response as a multiple of the original speed.\n1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.\n\nThis parameter is a post-processing adjustment to the audio after it is generated, it's\nalso possible to prompt the model to speak faster or slower.\n" default: 1 voice: $ref: '#/components/schemas/VoiceIdsShared' description: "Configuration for input and output audio.\n" - client_secret: - type: object - properties: - expires_after: - required: - - anchor - type: object - properties: - anchor: - enum: - - created_at - type: string - description: "The anchor point for the ephemeral token expiration. Only `created_at` is currently supported.\n" - seconds: - type: integer - description: "The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200`.\n" - default: 600 - description: "Configuration for the ephemeral token expiration.\n" - description: "Configuration options for the generated client secret.\n" include: type: array items: enum: - item.input_audio_transcription.logprobs type: string - description: "Additional fields to include in server outputs.\n- `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.\n" + description: "Additional fields to include in server outputs.\n\n`item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.\n" instructions: type: string description: "The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion into your voice\", \"laugh frequently\"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.\n" @@ -22447,8 +24401,6 @@ components: - enum: - gpt-realtime - gpt-realtime-2025-08-28 - - gpt-4o-realtime - - gpt-4o-mini-realtime - gpt-4o-realtime-preview - gpt-4o-realtime-preview-2024-10-01 - gpt-4o-realtime-preview-2024-12-17 @@ -22459,18 +24411,17 @@ components: x-stainless-nominal: false description: "The Realtime model used for this session.\n" output_modalities: + type: array items: enum: - text - audio type: string - description: "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n" + description: "The set of modalities the model can respond with. It defaults to `[\"audio\"]`, indicating\nthat the model will respond with audio plus a transcript. `[\"text\"]` can be used to make\nthe model respond with text only. It is not possible to request both `text` and `audio` at the same time.\n" + default: + - audio prompt: $ref: '#/components/schemas/Prompt' - temperature: - type: number - description: "Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.\n" - default: 0.8 tool_choice: anyOf: - $ref: '#/components/schemas/ToolChoiceOptions' @@ -22482,24 +24433,7 @@ components: type: array items: anyOf: - - title: Function tool - type: object - properties: - description: - type: string - description: "The description of the function, including guidance on when and how\nto call it, and guidance about what to tell the user when calling\n(if anything).\n" - name: - type: string - description: The name of the function. - parameters: - type: object - description: Parameters of the function in JSON Schema. - type: - enum: - - function - type: string - description: 'The type of the tool, i.e. `function`.' - x-stainless-const: true + - $ref: '#/components/schemas/RealtimeFunctionTool' - $ref: '#/components/schemas/MCPTool' discriminator: propertyName: type @@ -22518,15 +24452,15 @@ components: properties: group_id: type: string - description: "The group id to attach to this trace to enable filtering and\ngrouping in the traces dashboard.\n" + description: "The group id to attach to this trace to enable filtering and\ngrouping in the Traces Dashboard.\n" metadata: type: object - description: "The arbitrary metadata to attach to this trace to enable\nfiltering in the traces dashboard.\n" + description: "The arbitrary metadata to attach to this trace to enable\nfiltering in the Traces Dashboard.\n" workflow_name: type: string - description: "The name of the workflow to attach to this trace. This is used to\nname the trace in the traces dashboard.\n" + description: "The name of the workflow to attach to this trace. This is used to\nname the trace in the Traces Dashboard.\n" description: "Granular configuration for tracing.\n" - description: "Configuration options for tracing. Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n" + description: "Realtime API can write session traces to the [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n" nullable: true truncation: $ref: '#/components/schemas/RealtimeTruncation' @@ -22538,9 +24472,6 @@ components: x-stainless-const: true description: Realtime session object configuration. RealtimeSessionCreateResponse: - title: Realtime session configuration object - required: - - client_secret type: object properties: audio: @@ -22550,70 +24481,93 @@ components: type: object properties: format: - type: string - description: "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" + $ref: '#/components/schemas/RealtimeAudioFormats' noise_reduction: type: object properties: type: - enum: - - near_field - - far_field - type: string - description: "Configuration for input audio noise reduction.\n" + $ref: '#/components/schemas/NoiseReductionType' + 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" transcription: - type: object - properties: - language: - type: string - description: "The language of the input audio.\n" - model: - type: string - description: "The model to use for transcription.\n" - prompt: - type: string - description: "Optional text to guide the model's style or continue a previous audio segment.\n" - description: "Configuration for input audio transcription.\n" + $ref: '#/components/schemas/AudioTranscription' turn_detection: type: object properties: + create_response: + type: boolean + description: "Whether or not to automatically generate a response when a VAD stop event occurs.\n" + default: true + eagerness: + enum: + - low + - medium + - high + - auto + type: string + description: "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.\n" + default: auto + idle_timeout_ms: + type: integer + description: "Optional idle timeout after which turn detection will auto-timeout when\nno additional audio is received.\n" + nullable: true + interrupt_response: + type: boolean + description: "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs.\n" + default: true prefix_padding_ms: type: integer + description: "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.\n" silence_duration_ms: type: integer + description: "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.\n" threshold: type: number + description: "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.\n" type: + enum: + - server_vad + - semantic_vad type: string - description: "Type of turn detection, only `server_vad` is currently supported.\n" - description: "Configuration for turn detection.\n" + description: "Type of turn detection.\n" + default: server_vad + description: "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n" output: type: object properties: format: - type: string - description: "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" + $ref: '#/components/schemas/RealtimeAudioFormats' speed: + maximum: 1.5 + minimum: 0.25 type: number + description: "The speed of the model's spoken response as a multiple of the original speed.\n1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.\n\nThis parameter is a post-processing adjustment to the audio after it is generated, it's\nalso possible to prompt the model to speak faster or slower.\n" + default: 1 voice: $ref: '#/components/schemas/VoiceIdsShared' - description: "Configuration for input and output audio for the session.\n" - expires_at: - type: integer - description: 'Expiration timestamp for the session, in seconds since epoch.' - id: - type: string - description: "Unique identifier for the session that looks like `sess_1234567890abcdef`.\n" + description: "Configuration for input and output audio.\n" + client_secret: + required: + - value + - expires_at + type: object + properties: + expires_at: + type: integer + description: "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.\n" + value: + type: string + description: "Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.\n" + description: Ephemeral key returned by the API. include: type: array items: enum: - item.input_audio_transcription.logprobs type: string - description: "Additional fields to include in server outputs.\n- `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.\n" + description: "Additional fields to include in server outputs.\n\n`item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.\n" instructions: type: string - description: "The default system instructions (i.e. system message) prepended to model\ncalls. This field allows the client to guide the model on desired\nresponses. The model can be instructed on response content and format,\n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good\nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion\ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed\nto be followed by the model, but they provide guidance to the model on the\ndesired behavior.\n\nNote that the server sets default instructions which will be used if this\nfield is not set and are visible in the `session.created` event at the\nstart of the session.\n" + description: "The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion into your voice\", \"laugh frequently\"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.\n" max_output_tokens: anyOf: - type: integer @@ -22623,42 +24577,45 @@ components: x-stainless-const: true description: "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n" model: - type: string - description: The Realtime model used for this session. - object: - type: string - description: The object type. Always `realtime.session`. + anyOf: + - type: string + - enum: + - gpt-realtime + - gpt-realtime-2025-08-28 + - gpt-4o-realtime-preview + - gpt-4o-realtime-preview-2024-10-01 + - gpt-4o-realtime-preview-2024-12-17 + - gpt-4o-realtime-preview-2025-06-03 + - gpt-4o-mini-realtime-preview + - gpt-4o-mini-realtime-preview-2024-12-17 + type: string + description: "The Realtime model used for this session.\n" output_modalities: + type: array items: enum: - text - audio type: string - description: "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n" + description: "The set of modalities the model can respond with. It defaults to `[\"audio\"]`, indicating\nthat the model will respond with audio plus a transcript. `[\"text\"]` can be used to make\nthe model respond with text only. It is not possible to request both `text` and `audio` at the same time.\n" + default: + - audio + prompt: + $ref: '#/components/schemas/Prompt' tool_choice: - type: string - description: "How the model chooses tools. Options are `auto`, `none`, `required`, or\nspecify a function.\n" + anyOf: + - $ref: '#/components/schemas/ToolChoiceOptions' + - $ref: '#/components/schemas/ToolChoiceFunction' + - $ref: '#/components/schemas/ToolChoiceMCP' + description: "How the model chooses tools. Provide one of the string modes or force a specific\nfunction/MCP tool.\n" + default: auto tools: type: array items: - type: object - properties: - description: - type: string - description: "The description of the function, including guidance on when and how\nto call it, and guidance about what to tell the user when calling\n(if anything).\n" - name: - type: string - description: The name of the function. - parameters: - type: object - description: Parameters of the function in JSON Schema. - type: - enum: - - function - type: string - description: 'The type of the tool, i.e. `function`.' - x-stainless-const: true - description: Tools (functions) available to the model. + anyOf: + - $ref: '#/components/schemas/RealtimeFunctionTool' + - $ref: '#/components/schemas/MCPTool' + description: Tools available to the model. tracing: title: Tracing Configuration anyOf: @@ -22673,41 +24630,30 @@ components: properties: group_id: type: string - description: "The group id to attach to this trace to enable filtering and\ngrouping in the traces dashboard.\n" + description: "The group id to attach to this trace to enable filtering and\ngrouping in the Traces Dashboard.\n" metadata: type: object - description: "The arbitrary metadata to attach to this trace to enable\nfiltering in the traces dashboard.\n" + description: "The arbitrary metadata to attach to this trace to enable\nfiltering in the Traces Dashboard.\n" workflow_name: type: string - description: "The name of the workflow to attach to this trace. This is used to\nname the trace in the traces dashboard.\n" + description: "The name of the workflow to attach to this trace. This is used to\nname the trace in the Traces Dashboard.\n" description: "Granular configuration for tracing.\n" - description: "Configuration options for tracing. Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n" - turn_detection: - type: object - properties: - prefix_padding_ms: - type: integer - description: "Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.\n" - silence_duration_ms: - type: integer - description: "Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.\n" - threshold: - type: number - description: "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.\n" - type: - type: string - description: "Type of turn detection, only `server_vad` is currently supported.\n" - description: "Configuration for turn detection. Can be set to `null` to turn off. Server\nVAD means that the model will detect the start and end of speech based on\naudio volume and respond at the end of user speech.\n" - description: "A Realtime session configuration object.\n" + description: "Realtime API can write session traces to the [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n" + nullable: true + truncation: + $ref: '#/components/schemas/RealtimeTruncation' + type: + enum: + - realtime + type: string + description: "The type of session to create. Always `realtime` for the Realtime API.\n" + x-stainless-const: true + description: "A new Realtime session configuration, with an ephemeral key. Default TTL\nfor keys is one minute.\n" x-oaiMeta: - example: "{\n \"id\": \"sess_001\",\n \"object\": \"realtime.session\",\n \"expires_at\": 1742188264,\n \"model\": \"gpt-4o-realtime\",\n \"output_modalities\": [\"audio\", \"text\"],\n \"instructions\": \"You are a friendly assistant.\",\n \"tools\": [],\n \"tool_choice\": \"none\",\n \"max_output_tokens\": \"inf\",\n \"tracing\": \"auto\",\n \"truncation\": \"auto\",\n \"prompt\": null,\n \"audio\": {\n \"input\": {\n \"format\": \"pcm16\",\n \"transcription\": { \"model\": \"whisper-1\" },\n \"noise_reduction\": null,\n \"turn_detection\": null\n },\n \"output\": {\n \"format\": \"pcm16\",\n \"voice\": \"alloy\",\n \"speed\": 1.0\n }\n },\n \"client_secret\": {\n \"value\": \"ek_abc123\",\n \"expires_at\": 1234567890\n }\n}\n" group: realtime name: The session object RealtimeTranscriptionSessionCreateRequest: title: Realtime transcription session configuration - required: - - type - - model type: object properties: include: @@ -22716,53 +24662,23 @@ components: enum: - item.input_audio_transcription.logprobs type: string - description: "The set of items to include in the transcription. Current available items are:\n- `item.input_audio_transcription.logprobs`\n" + description: "The set of items to include in the transcription. Current available items are:\n`item.input_audio_transcription.logprobs`\n" input_audio_format: enum: - pcm16 - g711_ulaw - - g711_alaw - type: string - description: "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,\nsingle channel (mono), and little-endian byte order.\n" - default: pcm16 - input_audio_noise_reduction: - type: object - properties: - type: - enum: - - near_field - - far_field - type: string - description: "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n" - 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" - input_audio_transcription: - type: object - properties: - language: - type: string - description: "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n" - model: - enum: - - gpt-4o-transcribe - - gpt-4o-mini-transcribe - - whisper-1 - type: string - description: "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n" - prompt: - type: string - description: "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n" - description: "Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n" - model: - anyOf: - - type: string - - enum: - - whisper-1 - - gpt-4o-transcribe - - gpt-4o-mini-transcribe - type: string - x-stainless-nominal: false - description: "ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).\n" - example: gpt-4o-transcribe + - g711_alaw + type: string + description: "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,\nsingle channel (mono), and little-endian byte order.\n" + default: pcm16 + input_audio_noise_reduction: + type: object + properties: + type: + $ref: '#/components/schemas/NoiseReductionType' + 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" + input_audio_transcription: + $ref: '#/components/schemas/AudioTranscription' turn_detection: type: object properties: @@ -22781,15 +24697,11 @@ components: type: string description: "Type of turn detection. Only `server_vad` is currently supported for transcription sessions.\n" description: "Configuration for turn detection. Can be set to `null` to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\n" - type: - enum: - - transcription - type: string - description: "The type of session to create. Always `transcription` for transcription sessions.\n" - x-stainless-const: true description: Realtime transcription session object configuration. - RealtimeTranscriptionSessionCreateResponse: - title: Realtime transcription session configuration object + RealtimeTranscriptionSessionCreateRequestGA: + title: Realtime transcription session configuration + required: + - type type: object properties: audio: @@ -22799,67 +24711,120 @@ components: type: object properties: format: - type: string - description: "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" + $ref: '#/components/schemas/RealtimeAudioFormats' noise_reduction: type: object properties: type: - enum: - - near_field - - far_field - type: string - description: "Configuration for input audio noise reduction.\n" + $ref: '#/components/schemas/NoiseReductionType' + 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" transcription: + $ref: '#/components/schemas/AudioTranscription' + turn_detection: type: object properties: - language: - type: string - description: "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n" - model: + create_response: + type: boolean + description: "Whether or not to automatically generate a response when a VAD stop event occurs.\n" + default: true + eagerness: enum: - - gpt-4o-transcribe - - gpt-4o-mini-transcribe - - whisper-1 - type: string - description: "The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`.\n" - prompt: + - low + - medium + - high + - auto type: string - description: "An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match the audio language.\n" - description: "Configuration of the transcription model.\n" - turn_detection: - type: object - properties: + description: "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.\n" + default: auto + idle_timeout_ms: + type: integer + description: "Optional idle timeout after which turn detection will auto-timeout when\nno additional audio is received.\n" + nullable: true + interrupt_response: + type: boolean + description: "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs.\n" + default: true prefix_padding_ms: type: integer + description: "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.\n" silence_duration_ms: type: integer + description: "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.\n" threshold: type: number + description: "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.\n" type: + enum: + - server_vad + - semantic_vad type: string - description: "Type of turn detection, only `server_vad` is currently supported.\n" - description: "Configuration for turn detection.\n" - description: "Configuration for input audio for the session.\n" - expires_at: - type: integer - description: 'Expiration timestamp for the session, in seconds since epoch.' - id: - type: string - description: "Unique identifier for the session that looks like `sess_1234567890abcdef`.\n" + description: "Type of turn detection.\n" + default: server_vad + description: "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n" + description: "Configuration for input and output audio.\n" include: type: array items: enum: - item.input_audio_transcription.logprobs type: string - description: "Additional fields to include in server outputs.\n- `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.\n" - object: + description: "Additional fields to include in server outputs.\n\n`item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.\n" + type: + enum: + - transcription + type: string + description: "The type of session to create. Always `transcription` for transcription sessions.\n" + x-stainless-const: true + description: Realtime transcription session object configuration. + RealtimeTranscriptionSessionCreateResponse: + required: + - client_secret + type: object + properties: + client_secret: + required: + - value + - expires_at + type: object + properties: + expires_at: + type: integer + description: "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.\n" + value: + type: string + description: "Ephemeral key usable in client environments to authenticate connections\nto the Realtime API. Use this in client-side environments rather than\na standard API token, which should only be used server-side.\n" + description: "Ephemeral key returned by the API. Only present when the session is\ncreated on the server via REST API.\n" + input_audio_format: type: string - description: The object type. Always `realtime.transcription_session`. - description: "A Realtime transcription session configuration object.\n" + description: "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n" + input_audio_transcription: + $ref: '#/components/schemas/AudioTranscription' + modalities: + items: + enum: + - text + - audio + type: string + description: "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n" + turn_detection: + type: object + properties: + prefix_padding_ms: + type: integer + description: "Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.\n" + silence_duration_ms: + type: integer + description: "Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.\n" + threshold: + type: number + description: "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.\n" + type: + type: string + description: "Type of turn detection, only `server_vad` is currently supported.\n" + description: "Configuration for turn detection. Can be set to `null` to turn off. Server\nVAD means that the model will detect the start and end of speech based on\naudio volume and respond at the end of user speech.\n" + description: "A new Realtime transcription session configuration.\n\nWhen a session is created on the server via REST API, the session object\nalso contains an ephemeral key. Default TTL for keys is 10 minutes. This\nproperty is not present when a session is updated via the WebSocket API.\n" x-oaiMeta: - example: "{\n \"id\": \"sess_BBwZc7cFV3XizEyKGDCGL\",\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 \"object\": \"realtime.transcription_session\",\n \"expires_at\": 1742188264,\n \"modalities\": [\"audio\", \"text\"],\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 200\n },\n \"input_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"language\": null,\n \"prompt\": \"\"\n },\n \"client_secret\": null\n}\n" group: realtime name: The transcription session object RealtimeTruncation: @@ -22870,30 +24835,26 @@ components: - auto - disabled type: string - description: The truncation strategy to use for the session. + description: The truncation strategy to use for the session. `auto` is the default truncation strategy. `disabled` will disable truncation and emit errors when the conversation exceeds the input token limit. - title: Retention ratio truncation required: - type - retention_ratio type: object properties: - post_instructions_token_limit: - type: integer - description: "Optional cap on tokens allowed after the instructions.\n" - nullable: true retention_ratio: maximum: 1 minimum: 0 type: number - description: "Fraction of pre-instruction conversation tokens to retain (0.0 - 1.0).\n" + description: "Fraction of post-instruction conversation tokens to retain (0.0 - 1.0) when the conversation exceeds the input token limit.\n" type: enum: - retention_ratio type: string description: Use retention ratio truncation. x-stainless-const: true - description: Retain a fraction of the conversation tokens. - description: "Controls how the realtime conversation is truncated prior to model inference.\nThe default is `auto`. When set to `retention_ratio`, the server retains a\nfraction of the conversation tokens prior to the instructions.\n" + description: 'Retain a fraction of the conversation tokens when the conversation exceeds the input token limit. This allows you to amortize truncations across multiple turns, which can help improve cached token usage.' + description: "Controls how the realtime conversation is truncated prior to model inference.\nThe default is `auto`.\n" Reasoning: title: Reasoning type: object @@ -31149,7 +33110,7 @@ x-oaiMeta: id: realtime navigationGroup: realtime title: Realtime - - description: "REST API endpoint to generate ephemeral session tokens for use in client-side\napplications.\n" + - description: "REST API endpoint to generate ephemeral client secrets for use in client-side\napplications. Client secrets are short-lived tokens that can be passed to a client app,\nsuch as a web frontend or mobile client, which grants access to the Realtime API without\nleaking your main API key. You can configure a custom TTL for each client secret.\n\nYou can also attach session configuration options to the client secret, which will be\napplied to any sessions created using that client secret, but these can also be overridden\nby the client connection.\n\n[Learn more about authentication with client secrets over WebRTC](https://platform.openai.com/docs/guides/realtime-webrtc).\n" id: realtime-sessions navigationGroup: realtime sections: @@ -31159,7 +33120,7 @@ x-oaiMeta: - key: RealtimeCreateClientSecretResponse path: create-secret-response type: object - title: Session tokens + title: Client secrets - description: "These are events that the OpenAI Realtime WebSocket server will accept from the client.\n" id: realtime-client-events navigationGroup: realtime @@ -31194,9 +33155,6 @@ x-oaiMeta: - key: RealtimeClientEventResponseCancel path: type: object - - key: RealtimeClientEventTranscriptionSessionUpdate - path: - type: object - key: RealtimeClientEventOutputAudioBufferClear path: type: object @@ -31214,12 +33172,6 @@ x-oaiMeta: - key: RealtimeServerEventSessionUpdated path: type: object - - key: RealtimeServerEventTranscriptionSessionCreated - path: - type: object - - key: RealtimeServerEventConversationItemCreated - path: - type: object - key: RealtimeServerEventConversationItemAdded path: type: object @@ -31310,25 +33262,22 @@ x-oaiMeta: - key: RealtimeServerEventResponseMCPCallArgumentsDone path: type: object - - key: RealtimeServerEventMCPListToolsInProgress - path: - type: object - - key: RealtimeServerEventMCPListToolsCompleted + - key: RealtimeServerEventResponseMCPCallInProgress path: type: object - - key: RealtimeServerEventMCPListToolsFailed + - key: RealtimeServerEventResponseMCPCallCompleted path: type: object - - key: RealtimeServerEventResponseMCPCallInProgress + - key: RealtimeServerEventResponseMCPCallFailed path: type: object - - key: RealtimeServerEventResponseMCPCallCompleted + - key: RealtimeServerEventMCPListToolsInProgress path: type: object - - key: RealtimeServerEventResponseMCPCallFailed + - key: RealtimeServerEventMCPListToolsCompleted path: type: object - - key: RealtimeServerEventTranscriptionSessionUpdated + - key: RealtimeServerEventMCPListToolsFailed path: type: object - key: RealtimeServerEventRateLimitsUpdated @@ -31786,6 +33735,197 @@ x-oaiMeta: path: object type: object title: Completions + - description: "Communicate with a multimodal model in real time over low latency interfaces like WebRTC, WebSocket, and SIP. Natively supports speech-to-speech as well as text, image, and audio inputs and outputs.\n[Learn more about the Realtime API](https://platform.openai.com/docs/guides/realtime).\n" + id: realtime_beta + legacy: true + navigationGroup: legacy + title: Realtime Beta + - description: "REST API endpoint to generate ephemeral session tokens for use in client-side\napplications.\n" + id: realtime-beta-sessions + navigationGroup: legacy + sections: + - key: create-realtime-session + path: create + type: endpoint + - key: create-realtime-transcription-session + path: create-transcription + type: endpoint + - key: RealtimeSessionCreateResponse + path: session_object + type: object + - key: RealtimeTranscriptionSessionCreateResponse + path: transcription_session_object + type: object + title: Realtime Beta session tokens + - description: "These are events that the OpenAI Realtime WebSocket server will accept from the client.\n" + id: realtime-beta-client-events + navigationGroup: legacy + sections: + - key: RealtimeBetaClientEventSessionUpdate + path: + type: object + - key: RealtimeBetaClientEventInputAudioBufferAppend + path: + type: object + - key: RealtimeBetaClientEventInputAudioBufferCommit + path: + type: object + - key: RealtimeBetaClientEventInputAudioBufferClear + path: + type: object + - key: RealtimeBetaClientEventConversationItemCreate + path: + type: object + - key: RealtimeBetaClientEventConversationItemRetrieve + path: + type: object + - key: RealtimeBetaClientEventConversationItemTruncate + path: + type: object + - key: RealtimeBetaClientEventConversationItemDelete + path: + type: object + - key: RealtimeBetaClientEventResponseCreate + path: + type: object + - key: RealtimeBetaClientEventResponseCancel + path: + type: object + - key: RealtimeBetaClientEventTranscriptionSessionUpdate + path: + type: object + - key: RealtimeBetaClientEventOutputAudioBufferClear + path: + type: object + title: Realtime Beta client events + - description: "These are events emitted from the OpenAI Realtime WebSocket server to the client.\n" + id: realtime-beta-server-events + navigationGroup: legacy + sections: + - key: RealtimeBetaServerEventError + path: + type: object + - key: RealtimeBetaServerEventSessionCreated + path: + type: object + - key: RealtimeBetaServerEventSessionUpdated + path: + type: object + - key: RealtimeBetaServerEventTranscriptionSessionCreated + path: + type: object + - key: RealtimeBetaServerEventTranscriptionSessionUpdated + path: + type: object + - key: RealtimeBetaServerEventConversationItemCreated + path: + type: object + - key: RealtimeBetaServerEventConversationItemRetrieved + path: + type: object + - key: RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted + path: + type: object + - key: RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta + path: + type: object + - key: RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment + path: + type: object + - key: RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed + path: + type: object + - key: RealtimeBetaServerEventConversationItemTruncated + path: + type: object + - key: RealtimeBetaServerEventConversationItemDeleted + path: + type: object + - key: RealtimeBetaServerEventInputAudioBufferCommitted + path: + type: object + - key: RealtimeBetaServerEventInputAudioBufferCleared + path: + type: object + - key: RealtimeBetaServerEventInputAudioBufferSpeechStarted + path: + type: object + - key: RealtimeBetaServerEventInputAudioBufferSpeechStopped + path: + type: object + - key: RealtimeBetaServerEventInputAudioBufferTimeoutTriggered + path: + type: object + - key: RealtimeBetaServerEventResponseCreated + path: + type: object + - key: RealtimeBetaServerEventResponseDone + path: + type: object + - key: RealtimeBetaServerEventResponseOutputItemAdded + path: + type: object + - key: RealtimeBetaServerEventResponseOutputItemDone + path: + type: object + - key: RealtimeBetaServerEventResponseContentPartAdded + path: + type: object + - key: RealtimeBetaServerEventResponseContentPartDone + path: + type: object + - key: RealtimeBetaServerEventResponseTextDelta + path: + type: object + - key: RealtimeBetaServerEventResponseTextDone + path: + type: object + - key: RealtimeBetaServerEventResponseAudioTranscriptDelta + path: + type: object + - key: RealtimeBetaServerEventResponseAudioTranscriptDone + path: + type: object + - key: RealtimeBetaServerEventResponseAudioDelta + path: + type: object + - key: RealtimeBetaServerEventResponseAudioDone + path: + type: object + - key: RealtimeBetaServerEventResponseFunctionCallArgumentsDelta + path: + type: object + - key: RealtimeBetaServerEventResponseFunctionCallArgumentsDone + path: + type: object + - key: RealtimeBetaServerEventResponseMCPCallArgumentsDelta + path: + type: object + - key: RealtimeBetaServerEventResponseMCPCallArgumentsDone + path: + type: object + - key: RealtimeBetaServerEventResponseMCPCallInProgress + path: + type: object + - key: RealtimeBetaServerEventResponseMCPCallCompleted + path: + type: object + - key: RealtimeBetaServerEventResponseMCPCallFailed + path: + type: object + - key: RealtimeBetaServerEventMCPListToolsInProgress + path: + type: object + - key: RealtimeBetaServerEventMCPListToolsCompleted + path: + type: object + - key: RealtimeBetaServerEventMCPListToolsFailed + path: + type: object + - key: RealtimeBetaServerEventRateLimitsUpdated + path: + type: object + title: Realtime Beta server events navigationGroups: - id: responses title: Responses API